473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Manage image in Database from PictureEdit

Kosal
68
Dear Sir/Madam

I using vb,net 2005 with DevExpress 8.2 and i want to insert/delete/update image from PictureEdit to Database by store procedure.

I using code insertUpdate as below but still error
Expand|Select|Wrap|Line Numbers
  1. If Crs.GF_RunSQL("EXEC Sp_InsertUpdate_Company @cID = " & Me.lblcID.Text & _
  2.                                      ",@cBName=" & Crs.GF_ToStr(Me.txtBrandName.Text, True) & _
  3.                                      ",@cName=" & Crs.GF_ToStr(Me.txtCompanyName.Text, True) & _
  4.                                      ",@cAddress=" & Crs.GF_ToStr(Me.txtAddress.Text, True) & _
  5.                                      ",@cTel=" & Crs.GF_ToStr(Me.txtTel.Text, True) & _
  6.                                      ",@cFax=" & Crs.GF_ToStr(Me.txtFax.Text, True) & _
  7.                                      ",@cEmail=" & Crs.GF_ToStr(Me.txtEmail.Text, True) & _
  8.                                      ",@cWebsite=" & Crs.GF_ToStr(Me.txtWebsite.Text, True) & _
  9.                                      ",@cBrAcronym=" & Crs.GF_ToStr(Me.txtPrefix.Text, True) & _
  10.                                      ",@cLogo=" & pteLogo.EditValue & _
  11.                                      ",@cUser=" & Crs.GF_ToStr(Crs.gv_strUserName, True) & _
  12.                                      ",@cDate=" & Crs.GF_ToStr(Format(Date.Now, "yyyy-MM-dd hh:mm:ss tt")) & _
  13.                                      ",@cSysID=" & Me.lblSysID.Text) Then
  14.  
how can i do?

please help.
Dec 11 '08 #1
3 3839
Frinavale
9,735 Expert Mod 8TB
Hi Kosal,

I have changed the title of your thread from "Need you help" to something that better reflects the problem that you are trying to solve. In the future please use a better description for your thread title. Also, as a full member, you are expected to use code tags when posting code snippets. This makes it easier to read your question.


Please post any error messages that you are receiving.
Also, please explain what an PictureEdit is/does since I think this might be your own custom control.

-Moderator Frinny
Dec 11 '08 #2
nukefusion
221 Expert 100+
@Frinavale
I think can add a little bit of extra info there, as it's one I've used before. The PictureEdit control is a custom control developed by a company called DevExpress. It's like a standard .net picturebox control but allows the user to interact with the picture through editing, etc.

What I didn't understand is exactly the error was you were having - whether it is an SQL error, or an exception elsewhere in your code. I was also a bit lost on what these other functions are that begin with the Crs prefix. Is this a custom class you are using?

If you could post the full text of the exception or error that occurs that would be a good start.
Dec 12 '08 #3
sashi
1,754 Expert 1GB
BLOB is the technique you should look into. Run a search on this site, i've wrote an article on BLOB.
Dec 22 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Ester | last post by:
Instead of drag and drop image button from Toolbox and name the image button id on the properties box, I would like to load image button ID from database. I created a database table that stores...
1
by: John Scott | last post by:
I am storing an image in an SQL database and have one field as an image datatype. I am also using a webservice to transport data. I want to be able to resize the image and pass back a thumbnail...
6
by: bissatch | last post by:
Hi, I am currently writing a news admin system. I would like to add the ability to add images to each article. What I have always done in the past is uploaded (using a form) the image to a...
5
by: Showjumper | last post by:
I am wondering how some of you do it. I have a project that will displays a number of articles viewable via the browser. These articles are more then the 8K limit in sql server so i have been...
35
by: Stan Sainte-Rose | last post by:
Hi, What is the better way to save image into a database ? Just save the path into a field or save the image itself ? I have 20 000 images (~ 10/12 Ko per image ) to save. Stan
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
0
by: Mattia | last post by:
************************************************** Manage image without exhausted memory ************************************************** Hi; I have a big problem. I must create a script that...
3
by: den 2005 | last post by:
Hi everyone, Here is code working on..Trying to insert record with a column with Image or VarBinary datatype in sql database from a existing jpeg image file, then retrieve this image from...
16
by: Marcos de Lima Carlos | last post by:
Hi all, I have a VB aplicantion in many places. I need to manage databases over files on pen drive. What's the database i using to manage this program? My conditions is this: i have most...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...

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.