Click here to Skip to main content
14,691,476 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
when i checked my database to output the data for my dbo.products, under the column productimg, i got some numbers and letter combinations which is very long. Is it right that it is stored that way? for my productimg im using image as the datatype. Am i on the right track for storing the pciture to my database?

i have copied a portion of the numbers and letters, it is very long:
0xFFD8FFE000104A46494600010100000100010000FFDB0084000906071412121414101415151414141415161414151
Posted

1 solution

Yes, you're storing byte value of image in that column. For your other questions, check this.
Storing Uploaded Files in a Database or in the File System with ASP.NET[^](This has comparison File System vs Database - Advantages/Disadvantages, etc.,)

EDIT
-------------------
How to save and retrieve Image in Database using Asp.net?[^]
   
v2
Comments
Member 10302214 9-Oct-13 7:43am
   
I cant open the link :( maybe because of my location. Im in the Philippines.
thatraja 9-Oct-13 8:03am
   
Check updated answer. I have included additional link. You're from Philippines? Oops I forgot to send mail to walterhevedeich who's also from Philippines.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900