473,883 Members | 1,789 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 2376
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
11778
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 I have is I cannot retain the primary key field in a variable which is then used in a SQL update...
9
9834
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 - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in...
1
2515
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
5380
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 from the upload function: A generic error occurred in GDI+. Not sure what exactly that means. From what...
4
5904
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
3908
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 click "Upload Image" instead of the doctor/animal technician having to look for for dental x-ray...
18
34896
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 solutions that are probably overkill for your particular project? I'd like to walk you through the...
7
17065
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
2475
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 submitted file to a fixed size (say 180 x 120) before I upload it to the database and do this without...
0
9942
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11142
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10848
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10417
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7972
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7130
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5798
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4614
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
3
3234
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.