Click here to Skip to main content
15,889,200 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can insert picture to database with specific size.for example 70KB
and how can retrieve it.thanks
Posted

If you want a specific size in terms of bytes, then your only option is to create it in an uncompressed format such as a bitmap, with a fixed colour depth and draw the image you want into that, resizing as necessary.
As far as saving and retrieving it, see here: Why do I get a "Parameter is not valid." exception when I read an image from my database?[^]
 
Share this answer
 
v2
maybe this may help you

www.youtube.com/watch?v=mxjeE9no06w

www.youtube.com/watch?v=_9J7C2u_jIY‎

:)
 
Share this answer
 

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