I want to add image in column is it possible then how to add image in data base what data type we need to do

I want to add image in column is it possible then how to add image in data base  what data type we need to give we required any casting  please show me one example
jitendra

Hi again,
Several points that can help more:
1. If you are working with Dot.Net, then I highly recommend read the first link that you got! This is nice and simple coding. Another option is this link which is even better in my opinion:
http://www.dotnetgallery.com/kb/resource21-How-to-store-and-retrieve-images-from-SQL-server-database-using-aspnet.aspx
2. As i mention above both link use the column's type image. There are several other option of working with Files. In most of my applications architecture I find that it is better to use a column which let us use any type of file and not an image column.
In choosing the right column's type for your needs basically your fist question should be if if you want to store your data inside relational database environment or outside relational environment. It is a good idea to look for blogs on this issue. Next
if you chose to store your data inside then you need to chose the right column type according to your server version. I highly recommend to look for blogs on the differences between those column's types: IMAGE, 
Check those links:
To BLOB or Not To BLOB: Large Object Storage in a Database or a Filesystem
http://research.microsoft.com/apps/pubs/default.aspx?id=64525
FILESTREAM feature of SQL Server 2008
http://msdn.microsoft.com/library/hh461480
FileTables feature of SQL Server 2012
http://technet.microsoft.com/en-us/library/ff929144.aspx
Compare Options for Storing Blobs (SQL Server)
http://technet.microsoft.com/en-us/library/hh403405.aspx
Binary Large Object (Blob) Data (SQL Server)
http://technet.microsoft.com/en-us/library/bb895234.aspx
Managing BLOBs using SQL Server FileStream via EF and WCF streaming
* Very nice tutorial!
http://petermeinl.wordpress.com/2012/02/20/managing-blobs-using-sql-server-filestream-via-ef-and-wcf-streaming/
[Personal Site] [Blog] [Facebook]

Similar Messages

  • Altering existing column as notnull and then how to add primarykey

    Msg 5074, Level 16, State 1, Line 2
    The object 'UQ__customer__B61ED7F40D668B7F' is dependent on column 'customerid'.
    Msg 4922, Level 16, State 9, Line 2
    ALTER TABLE ALTER COLUMN customerid failed because one or more objects access this column.

    Can you try this one 
    CREATE TABLE [dbo].[Customer]([S.No] [int] NOT NULL,[Customer_id] [int] NOT NULL,
    CONSTRAINT [UK_customerid] unique CLUSTERED ([S.No],[Customer_id]))
    alter table [Customer] alter column [Customer_id] varchar(50)
    Error:
    Msg 5074, Level 16, State 1, Line 1
    The object 'UK_customerid' is dependent on column 'Customer_id'.
    Msg 4922, Level 16, State 9, Line 1
    ALTER TABLE ALTER COLUMN Customer_id failed because one or more objects access this column.
    Alter table [Customer]
    drop CONSTRAINT [UK_customerid]
    alter table [Customer] alter column [Customer_id] varchar(50)
    Please Mark This As Answer if it helps to solve the issue

  • Is it possible if we want to send a message or image to particular device token  if it is possible then how ?

    is it possible if we want to send a message or image to particular device token  if it is possible then how ?

    I think you may be seeing the same bug I reported several months ago. See this [https://bugzilla.mozilla.org/show_bug.cgi?id=875996#c3 comment] for one workaround.

  • How do I create a duplicate image inside the same page? Then how do I change the color of that image

    how do I create a duplicate image inside the same page? Then how do I change the color of that image from black to red?

    Hello there!
    Here is one way to create a duplicate image and colorize it. As you can see below, I have one image right now, that I want to duplicate.
    My layers panel looks like below.
    To duplicate your image, click the downward arrow on the right side of your Layer Panel.
    Select Duplicate Layer. This will duplicate the layer that the image is on.
    Select "OK" to approve the duplication.
    As you can now see in the Layers panel, the image is duplicated. The new layer is now at the top of the Layer panel.
    Now to colorize your image, go to Window > Adjustments.
    The Adjustments panel will now be opened. Select the Hue and Saturation icon as seen circled in red.
    The Hue and Saturation propertied panel will be opened. I selected "Colorize", and adjusted the hue and saturation bar to achieve the level red in my photo.
    As you can see below, the image is now red.
    Now i want to make sure only ONE of my image layers is red. I moved the Hue and Saturation layer to only be on top of the bottom layer. The image on the top layer now will not be affected by the red.
    Select the move tool, so I can now move the image layers so we can see both of them.
    With each image layer selected, you can take the move tool and move the images. I moved mine on top of eachother and you can see my red layer (bottom) and the non red layer (top).
    I hope that helps. i have also included helpful links.
    Please post back with any questions,
    Janelle

  • I am using iphone...i want to reset my phone but i forgeted passcode.then how can i reset it ?

    i am using iphone...i want to reset my phone but i forgeted passcode.then how can i reset it ?

    If you cannot remember the passcode, you will need to Restore the device...
    Connect to iTunes on the computer you usually Sync with and Restore...
    http://support.apple.com/kb/HT1414
    If necessary Place the Device into Recovery mode...
    http://support.apple.com/kb/HT1808
    Once you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup
    http://support.apple.com/kb/ht1766

  • This H P computer is new ( 3 months). Need written instructions how to scan, transfer my images, pictures to my computer and then how to transfer those item to another web site

    I need instructions on the above subject. I want to send, transfer, download from my PC to someone else web page. I have no clue right now

    Although my question has not yet been answered, I have since discovered that I asked on too specific of a forum. I have re-posted it on the general iPod forum and will shortly be marking this thread as answered to avoid confusion.
    The new version of this post is it at:
    http://discussions.apple.com/thread.jspa?threadID=1737777
    Please post any responses there.

  • TS3212 i have a toshiba thrive and want to put itunes on it, is that possible and how?

    how do i get itunes on my toshiba thrive?

    I gather that the Toshiba Thrive is an Android device. There is no version of iTunes for the Android operating system and therefore you cannot install iTunes onto the Thrive.
    Note: you have posted in the iTunes For Windows discussions. There is a discussions forum for iTunes for Mac. Did you not notice that there isn't one for Android?

  • I installed Mavericks on my macbook pro and now I want to go back to Lion, is this possible and how?

    I'm not satisfied with OS X Mavericks and I'd like to go back to OS X Lion! How do I do this as easy as possible?

    Erase your hard drive and install your Lion system backup. If you don't have a Lion backup, the you can do an Internet Recovery:
    Install Mavericks, Lion/Mountain Lion Using Internet Recovery
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Internet Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND-OPTION- R keys until a globe appears on the screen. Wait patiently - 15-20 minutes - until the Recovery main menu appears.
    Partition and Format the hard drive:
    1. Select Disk Utility from the main menu and click on the Continue button.
    2. After DU loads select your newly installed hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion. Mavericks: Select Reinstall Lion/Mountain Lion, Mavericks and click on the Install button. Be sure to select the correct drive to use if you have more than one.
    Note: You will need an active Internet connection. I suggest using Ethernet
                if possible because it is three times faster than wireless.
    This should restore the version of OS X originally pre-installed on the computer.

  • How to add a formula column in a report

    Hi
    I have made a report based on a query.
    There are 3 columns in the query and all the 3 are displayed.
    Now I want to add a new column (fomula column) to the report.
    I want to write a query inside the formula column. To execute the query col1, col2 and col3 values are required in the formula column.
    Could you please tell me how to add a formula column in the report and how to pass database column value to inside the formula column
    regards

    Here is how you would create a formula column:
    Open data model of the report.
    Formula column button is on the left side of the tool palette.
    Click on that button.
    Now click in the query group where you want to place the formula column.
    You would see a new field something like CF_1. That is the formula column.
    Double click on the field CF_1. It will open property inspector.
    You would see, Datatype of the formula column is Number. Change this as per your requirement.
    Double click on PL/SQL Formula property. It would open up a editor. Here you can write the code.
    And now to access the data model column here, you can use : and column name. i.e. :col1 or :col2, etc
    And remember you have to return the value back to the formula column. Like this: RETURN(some value).
    You can also take a help from here:
    http://download.oracle.com/docs/html/B13895_01/orbr_howto.htm#sthref1309
    Hope this helps.

  • How to add a new column to a existing table and add data to this column?

    I have a table with about 10 millions row and I want to add a new column to this table, then fill this new column with prepared data.
    How to do it ?
    Thank you

    Can I use insert statement to add the data to new-added column?No.
    07:19:37 oracle >create table test (x number);
    Table created.
    Elapsed: 00:00:03.05
    07:19:53 oracle >
    07:19:53 oracle >
    07:19:53 oracle >insert into test values (1);
    1 row created.
    Elapsed: 00:00:00.00
    07:20:01 oracle >insert into test values (2);
    1 row created.
    Elapsed: 00:00:00.00
    07:20:10 oracle >insert into test values (3);
    1 row created.
    Elapsed: 00:00:00.00
    07:20:12 oracle >
    07:20:13 oracle >commit;
    Commit complete.
    Elapsed: 00:00:00.00
    07:20:14 oracle >
    07:20:19 oracle >select * from test;
             X
             1
             2
             3
    Elapsed: 00:00:00.00
    07:20:22 oracle >
    07:20:36 oracle >alter table test add (y number);
    Table altered.
    Elapsed: 00:00:00.05
    07:20:41 oracle >
    07:20:41 oracle >
    07:20:41 oracle >
    07:20:41 oracle >select * from test;
             X          Y
             1
             2
             3
    Elapsed: 00:00:00.00
    07:20:43 oracle >
    07:20:44 oracle >
    07:20:44 oracle >update test set y=1;
    3 rows updated.
    Elapsed: 00:00:00.02
    07:20:52 oracle >commit;
    Commit complete.
    Elapsed: 00:00:00.00
    07:20:56 oracle >select * from test;
             X          Y
             1          1
             2          1
             3          1
    Elapsed: 00:00:00.00
    07:20:58 oracle >Anand

  • How to add a tip to flexfield columns

    How to add shorttip to Flex: (BankDetails) columns/segments. I know how to add shortip if it is a messtext input, I would like to know is there a way to add shorttip to Flexfield columns using personalizations.

    There seems to be no way for adding tip for a single segment using personalization.
    FYI:
    1. For whole region you can add a tip by creating a tip item just under flex item.
    2. Using controller, get the handle of any single segment. Then use the below method:
    oamessagetextinputbean.setLongTip()
    -Anand

  • How to change images dynamically in jsp?

    Hi All,
    i Want to know how to change images dynamically in jsp, for example in any site if u look at advertise or any images, it will be changed after every few seconds.
    Please guide me
    Thanks
    Sandesh S

    sandeshas wrote:
    Hi BlusC,
    i was searching your mail Id to ask the question directly to u,i checked in your blog also, but i didnt get,I want to keep my email spam safe. Only trusted people and direct friends have it. Just use the forums for discussion.
    my question is suppose if i want to display and change the advertise(adds from different company ) in my web site,how can i do it by using jsp?
    Do i need to create animated gifs which contains all company adds??one might be from movie add,after few seconds next one migth be some other web site add like that, how can i achieve this in my servet,jsp or using struts.You create animated gifs with an [animated gif editor|http://google.com/search?q=animated+gif+editor]. There is nothing what JSP can do for you here.

  • SharePoint 2010 Rest API: How to add attachment to a list item via ListData.svc

    Hi
    I have set up a project using the REST API in c# Visual Studio 2010.
    I have added a service reference to the URL //site/_vti_bin/listdata.svc/
    I can query the list and get back data, but I can't retrieve the attachments.
    I can write data to the list, but I can't add attachments.
    Are there any examples of how to add or retrieve attachments using the REST API services.
    Thanks
    Mike

    Hi,                                                             
    If you want to work with list attachments using REST API, here are some links will show how to do this using Javascript:
    http://msdn.microsoft.com/en-us/library/office/dn292553.aspx#FileAttachments
    http://chuvash.eu/2013/02/20/rest-api-add-a-plain-text-file-as-an-attachment-to-a-list-item/
    http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2013/06/27/how-to-get-list-item-attachments-using-rest-and-javascript-in-sharepoint-2013.aspx
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to add files in a pdf file

    Hello friends,
    This is Siddhartha from India, I want a favour from you, can anyone please tell me how to add files into pdf file, as an attachment ?
    Looking forward for your timely response,
    Thanks & Regards
    Siddhartha

    Dear Bill@VT,
    Thanks for your timely response, by attachment I meant any file that can be added as an attachment, it could be any file, it does not mean to insert pages, it means the same as when you attach a file in your email, while sending the mail to some one, now the thing is that I want the same functionality in Adobe Reader, so do u have any idea, for the same......
    Looking forward for your response
    Regards
    Siddhartha

  • How to Add the Dynamic List Wizard Form to a Spry Accordion Panel?

    Is it possible to add ADDT Dynamic Forms to the Spry Widgets?
    - I have been trying to add the Dynamic List Wizard to my existing Accordion but everytime I do, the Accordion turns into plain text?
    -Also, If it is possible then how do I target the Panels and have the detail record open up in Panel number 2?
    I plan on having the ADDT Dynamic Form in Panel 1, and want the Add, Edit, New, Delete form to open up in Panel 2.
    Thanks for your help,
    jlig

    I figured this out.
    1) First add all the Fields to the Form using the ADDT Insert Record Form Wizard.
    2) View the ADDT form in the browser to make sure the fields all display.
    3) In DW design view, move the cursor just to the left of the ADDT Form and hit Enter to Add a line just above the ADDT Table.
    4) With the cursor below the Red Form line and just above the ADDT table add the SPRY widget. (ex..Tabs)
    5) Now highlight the rows you want to move & hit Cut, then open up Tab1, highlight Content1 and hit Paste.
    I decide to leave my date_added, modified_By & date_modified fields below the SPRY tab widget so that these fields are visible all the time. When I click on the Insert button, the record was added correctly to my Table after Validation passed.
    Thanks,
    jlig

Maybe you are looking for

  • Acrobat X Quick Manual Link Building

    I'm trying to highlight rows of text to manually add links to them. The problem is the highlighting becomes unstable with the line between the text and page number. If you strictly highlight the text or page number it is stable but that forces me to

  • Best combination for adjusting B&W scanned Tif image files

    Hi, I have found it easy to use the many adjustments available in LR 2.3 to get great looking B&W images from RAW files but I have not yet figured out how to get great looking tones from the adjustments available for monochome image Tif files. Anyone

  • LabVIEW Position Salt Lake City, UT

    Greenlight has an immediate opportunity for a LabVIEW programmer who has at least 5 years oif LabVIEW programming experience.  Must have experience with at least 7.1, experience with V.8.1 or V.8.2 is desirable).  Due to the nature of the work applic

  • My only font size option is px

    I am using Dreamweaver CS6. The only font option I ever get is px choices.  The CSS option Type Font size dropdown is greyed out and locked on px I have read that the default option should be percentage, but I cannot get that to appear. Advice would

  • Streaming JPEG images via USB to a PDA

    My assignment is to display JPEG images streamed to a PDA via USB at 10 frames per second or more.  Since Lab View does not provide a means of decoding JPEG data resident in memory (only files can be opened), I developed a DLL to decode the JPEG data