Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

image

How can I display an image from SQL Server using ASP.NET?

August 28, 2022 by Magenaut

Here is my class (product.cs) where is the method to insert the image:

Categories ASP.NET, Q&A Tags asp.net, c#, image, sql-server Leave a comment

Is HttpPostedFile.ContentType a flawless way to validate an uploaded file?

August 28, 2022 by Magenaut

I want to validate the file type to make sure the user is uploading an image of type JPEG, GIF, or PNG. Instead of checking the file extension, I figured using HttpPostedFile.ContentType would be safer since it checks the MIME content type.

Categories ASP.NET, Q&A Tags asp.net, c#, image, validation Leave a comment

ASP.NET – Image is not showing up

August 28, 2022 by Magenaut

I have placed an image on the master page.

Categories ASP.NET, Q&A Tags asp.net, image Leave a comment

Rendering bytes from sql server to an image control?

August 28, 2022 by Magenaut

Markup:

Categories ASP.NET, Q&A Tags .net, asp.net, c#, image, sql-server Leave a comment

Using WPF on a DLL to create Images Dynamically (instead of GDI+)

August 26, 2022 by Magenaut

I need to generate an image dynamically, and after I read the tutorial here I realize i can use all the controls and layouts from WPF to generate my rendering, and then save it as a JPG.
The idea is to use this instead of GDI+, which is quite primitive.

Categories ASP.NET, Q&A Tags asp.net, c#, gdi+, image, wpf Leave a comment

How can I embed images in an ASP.NET Generated Word File

August 26, 2022 by Magenaut

I have a quite common problem, as I saw in the various user groups but could not find a suitable answer.

Categories ASP.NET, Q&A Tags asp.net, image, ms-word Leave a comment

Displaying a image from a database in asp.net mvc

August 25, 2022 by Magenaut

I have a view which contains a users id and an image column.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, database, image Leave a comment

Problem with displaying image from DB using asp.net MVC 2

August 24, 2022 by Magenaut

I’m having trouble with displaying image from db. I think that method for saving image is working, because I see in DB that varbinary fields have some value, and that image type is correct. Also the size of image. But when I want to display image for product i don’t get anything. Just blank space.. here is my code…

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, database, image Leave a comment

Show image stored in App_Data

August 24, 2022 by Magenaut

I have 2 image files in my App_Data directory and I want to show them in my view like this:

Categories ASP.NET, Q&A Tags app-data, asp.net, asp.net-mvc, asp.net-mvc-4, image Leave a comment

Best way to create a folder and upload a image to that folder in ASP.NET?

August 23, 2022 by Magenaut

Any code examples on how i must go about creating a folder say “pics” in my root and then upload a images from the file upload control in into that “pics” folder?
If you don’t want to give me all the code, i will be happy with a nice link also to show me how this will be done in VB.NET (C# is also ok).

Categories ASP.NET, Q&A Tags asp.net, c#, image, vb.net Leave a comment
Older posts
Newer posts
← Previous Page1 … Page4 Page5 Page6 … Page12 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress