473,569 Members | 3,040 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to resize an upload image and then change to binary & insert t

joe
how to resize an upload image and then change to binary & insert to db
Jul 26 '06 #1
4 2352
ASP.NET Image Manipulation Examples: Adding, Zooming, Enlarging

http://www.codeproject.com/aspnet/ASPImaging1.asp

Writing BLOB Values to a Database

http://msdn.microsoft.com/library/de...todatabase.asp

"joe" <jo*@discussion s.microsoft.com wrote in message
news:38******** *************** ***********@mic rosoft.com...
how to resize an upload image and then change to binary & insert to db

Jul 26 '06 #2
joe
i upload the image and then change to bitmap so as to resize the image
Bitmap = GetThumbnailIma ge(m_x, m_y, New
System.Drawing. Image.GetThumbn ailImageAbort(A ddressOf ThumbCallback),
IntPtr.Zero)

how to transfer a bitmap into binary

"Ken Cox [Microsoft MVP]" wrote:
ASP.NET Image Manipulation Examples: Adding, Zooming, Enlarging

http://www.codeproject.com/aspnet/ASPImaging1.asp

Writing BLOB Values to a Database

http://msdn.microsoft.com/library/de...todatabase.asp

"joe" <jo*@discussion s.microsoft.com wrote in message
news:38******** *************** ***********@mic rosoft.com...
how to resize an upload image and then change to binary & insert to db


Jul 26 '06 #3
Isn't a bitmap binary already?

"joe" <jo*@discussion s.microsoft.com wrote in message
news:F2******** *************** ***********@mic rosoft.com...
>i upload the image and then change to bitmap so as to resize the image
Bitmap = GetThumbnailIma ge(m_x, m_y, New
System.Drawing. Image.GetThumbn ailImageAbort(A ddressOf ThumbCallback),
IntPtr.Zero)

how to transfer a bitmap into binary

"Ken Cox [Microsoft MVP]" wrote:
>ASP.NET Image Manipulation Examples: Adding, Zooming, Enlarging

http://www.codeproject.com/aspnet/ASPImaging1.asp

Writing BLOB Values to a Database

http://msdn.microsoft.com/library/de...todatabase.asp

"joe" <jo*@discussion s.microsoft.com wrote in message
news:38******* *************** ************@mi crosoft.com...
how to resize an upload image and then change to binary & insert to db



Jul 26 '06 #4
joe
sorry is Byte
Bitmap to Byte
since it can't ctype(m_bitmap, Byte) right,
help thanks

"Ken Cox [Microsoft MVP]" wrote:
Isn't a bitmap binary already?

"joe" <jo*@discussion s.microsoft.com wrote in message
news:F2******** *************** ***********@mic rosoft.com...
i upload the image and then change to bitmap so as to resize the image
Bitmap = GetThumbnailIma ge(m_x, m_y, New
System.Drawing. Image.GetThumbn ailImageAbort(A ddressOf ThumbCallback),
IntPtr.Zero)

how to transfer a bitmap into binary

"Ken Cox [Microsoft MVP]" wrote:
ASP.NET Image Manipulation Examples: Adding, Zooming, Enlarging

http://www.codeproject.com/aspnet/ASPImaging1.asp

Writing BLOB Values to a Database

http://msdn.microsoft.com/library/de...todatabase.asp

"joe" <jo*@discussion s.microsoft.com wrote in message
news:38******** *************** ***********@mic rosoft.com...
how to resize an upload image and then change to binary & insert to db


Jul 27 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
11747
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a table in MySQL with the path & filename to the image. I have successfully uploaded and performed an update query on the database, but the problem...
9
9803
by: Don | last post by:
Does anyone know where I can find a client-side function I can reference from within an HTML/JavaScript web page? I'm currently using a core PHP function to do this, but I'd rather do it on the client-side and not have to upload the large raw image to the server. Thanks in advance for your help. Don ----== Posted via Newsfeeds.Com -...
1
2496
by: John Thompson | last post by:
We're sooo close. When we load the page to upload the image, all of the prms go through except the binary image data. Using SQL server with the data type set to "image". Please help! Thanks- John
15
5313
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the path of the uploaded image, and resize it with the provided dimensions. My function is below. The current function is returning an error when run...
4
5886
by: Jim Michaels | last post by:
after a file upload, $_FILES is not populated but $_POST is. what's going on here? $_POST=C $_POST=C $_POST=C $_POST=C:\\www\\jimm\\images\\bg1.jpg $_FILES= $_FILES= $_FILES=
9
3881
by: Steve Poe | last post by:
I work for an animal hospital trying to use PHP to store an animal's dental x-rays to a file server. I can browse for the xray on the local desktop computer then click "Upload Image". This works fine. The doctors want fewer steps to follow. So, it was asked if I can configure the browser to load/submit the image 'xray.tif' each time they...
18
34704
jhardman
by: jhardman | last post by:
Have you ever wanted to upload files through a form and thought, "I'd really like to use ASP, it surely has that capability, but the tutorial I used to learn ASP didn't mention how to do this."? Have you looked around trying to find simple solutions but didn't want to wade through pages of complex code? Have you balked at paying for premade...
7
17045
by: mishrarajesh44 | last post by:
hii all Truly telling i hav got this code from net & i am finding error while running the code below.. code:- <?php $idir = "photo/"; // Path To Images Directory $tdir = "photo/thumbs/"; // Path To Thumbnails Directory $twidth = "125"; // Maximum Width For Thumbnail Images
3
2450
by: pozze | last post by:
Hi, I've just made the change from ASP to .net. I have a file (code below) that saves a user submitted file to a MS SQL 2005 database. It collects the file name, file size, file type, and lastly the binary data for the file. I can sucessfully take the files out of the databse again and display them in a data grid. I would like to resize the...
0
7930
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7681
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6290
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.