Saving image in table

is it possible image in table? can it be saved as an encrypted code?

the code is in java. is there a way in abap?

Similar Messages

  • Saving image to a folder not working on azure

    I am saving image
    files to a folder in my application and saving its path in database . Image uploads working fine when I am running locally
    and its path is also storing.When I deployed it on azure it
    gives an error that " An error occurred while processing your request ". I have two tables in my database . First one where text is saved is working fine on azure but image upload thrown this error.
    I am using this code
    to upload
    image and its works fine when I am running locally. Need help ?

    Hi,
    Have you made any progress ?
    May I ask what application is it that you are running ? You mentioned that it works locally but not when deploying to Azure. Have you checked the connections strings?
    If you are still having any difficulty in understanding the code, perhaps you could post it on the below blog.
    http://blogs.msdn.com/b/onecode/archive/2014/08/28/sample-of-aug-28-how-to-store-the-images-in-sql-azure.aspx
    Regards,
    Mekh.

  • Saving image using mobile into sap R/3

    We are using sap mobile platform version 2.3 and our client requirement is to save images using mobile apps.
    We already saved images in mime repository but for this we have to required client modifiable , but due  to security reason we can't do this.
    Please Help.

    Hi Nilesh ,
      I had a scenario to attach image to pr05 transaction from mobile, so that when click view attachment button in pr05 i can see the image . My code is based on that .
    it is the function module with import parameter base64 string and filename ,last three letters of the file name proceeding the . is the extension
    in your case you need to create custom object type instead of  BUS2089 .
    Do research regarding that ..
    -->Local Workare declaration.
       DATA : ls_fol_id   TYPE soodk,
              ls_obj_id   TYPE soodk,
              ls_obj_data TYPE sood1,
              ls_content  TYPE soli,
              ls_folmem_k TYPE sofmk,
              ls_note     TYPE borident,
              ls_object   TYPE borident.
    **--> Local internal table declaration.
       DATA : lt_content   TYPE STANDARD TABLE OF soli,
              lt_url_tab   TYPE STANDARD TABLE OF so_url,
              lt_objhead   TYPE STANDARD TABLE OF soli.
    **--> Local variable declaration.
       DATA : lv_filename            TYPE string,
              lv_file_name_with_path TYPE chkfile,
              lv_stripped_name       TYPE string,
              lv_name                TYPE char30,
              lv_url_tab_size        TYPE sytabix,
              lv_ep_note             TYPE borident-objkey.
       ls_object-objtype = 'BUS2089'.
       ls_object-objkey  = '001095510000020022'.
       ls_obj_data-objdes = I_FILE_NAME.
       ls_obj_data-file_ext = I_FILE_EXT.
       CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
         EXPORTING
           buffer     = I_FILE
         TABLES
           binary_tab = lt_content.
       CALL FUNCTION 'SO_CONVERT_CONTENTS_BIN'
         EXPORTING
           it_contents_bin = lt_content[]
         IMPORTING
           et_contents_bin = lt_content[].
    **--> Getting folder ID to save data
       CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
         EXPORTING
           region                = 'B'
         IMPORTING
           folder_id             = ls_fol_id
         EXCEPTIONS
           communication_failure = 1
           owner_not_exist       = 2
           system_failure        = 3
           x_error               = 4
           OTHERS                = 5.
       IF sy-subrc = 0.
         ls_obj_data-objsns = 'O'.
         ls_obj_data-objla = sy-langu.
         ls_obj_data-objlen = LINES( lt_content ) * 255.
         CLEAR ls_content.
         CONCATENATE '&SO_FILENAME=' I_FILE_NAME '.' I_FILE_EXT INTO ls_content.
         APPEND ls_content TO lt_objhead.
    **-->To Create an Object and Move to a Folder
         CALL FUNCTION 'SO_OBJECT_INSERT'
           EXPORTING
             folder_id                  = ls_fol_id
             object_hd_change           = ls_obj_data
             object_type                = 'EXT'
           IMPORTING
             object_id                  = ls_obj_id
           TABLES
             objcont                    = lt_content
             objhead                    = lt_objhead
           EXCEPTIONS
             active_user_not_exist      = 1
             communication_failure      = 2
             component_not_available    = 3
             dl_name_exist              = 4
             folder_not_exist           = 5
             folder_no_authorization    = 6
             object_type_not_exist      = 7
             operation_no_authorization = 8
             owner_not_exist            = 9
             parameter_error            = 10
             substitute_not_active      = 11
             substitute_not_defined     = 12
             system_failure             = 13
             x_error                    = 14
             OTHERS                     = 15.
         IF sy-subrc = 0 AND ls_object-objkey IS NOT INITIAL.
    *            COMMIT WORK AND WAIT.
           ls_folmem_k-foltp = ls_fol_id-objtp.
           ls_folmem_k-folyr = ls_fol_id-objyr.
           ls_folmem_k-folno = ls_fol_id-objno.
           ls_folmem_k-doctp = ls_obj_id-objtp.
           ls_folmem_k-docyr = ls_obj_id-objyr.
           ls_folmem_k-docno = ls_obj_id-objno.
           lv_ep_note = ls_folmem_k.
           ls_note-objtype = 'MESSAGE'.
           ls_note-objkey = lv_ep_note.
    **-->Link the object ID to trip No.
           CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'
             EXPORTING
               obj_rolea      = ls_object
               obj_roleb      = ls_note
               relationtype   = 'ATTA'
             EXCEPTIONS
               no_model       = 1
               internal_error = 2
               unknown        = 3
               OTHERS         = 4.
           IF sy-subrc = 0.
    *            COMMIT WORK AND WAIT.
           ENDIF.
         ENDIF.   " SO_OBJECT_INSERT
       ENDIF.       " SO_FOLDER_ROOT_ID_GET
    ENDFUNCTION.

  • Display image from table!

    Hi,
    I have in my aplication a table user, where we can save is image:
    t_user{id_user, name , adress..., foto(blob),foto_size(number),foto_name,foto_mime_type};
    An user can upload his imageand save it in his table!
    I wanted to display his image, but i onle found infomation how to show images saved in htmldb_application_files:
    how to display image from tables?
    Thank's in advance

    Look at the sample application. It shows you how to do this

  • HOW IT SAVES IMAGE IN TABLE?

    Hi friends,
    I have 1 table test with fields:
    eid number,
    e_pict long raw.
    I have saved images through a form to the table from a file.
    after saving I tried to see the table's data:
    SQL> SELECT * FROM TEST;
    EID E_PICT
    123 4
    20
    789 4
    456 4
    4897 4
    128 5
    6 rows selected.
    I've found for same type of image (say .gif) the E_PICT value is same, only when change the image type the value changes and does not depend on path or filename. Then how Oracle keeps track of exactly which image is saved?
    Pls help me.
    Regards,
    Pragati.

    What version of Oracle, and what are you hoping to do with the images?
    Oracle has something called interMedia which is included free in the Standard and Enterprise editions of the database. It handles audio, image and video.
    The documentation even includes "The interMedia PL/SQL Web Toolkit Photo Album sample application" which demonstrates how to perform the following operations:
    *Use the interMedia image object type to upload, retrieve, and process media data stored in Oracle Database.
    *Combine the image metadata methods of interMedia with the XML document management capabilities of Oracle XML DB and the full-text indexing and search features of Oracle Text to create a solution that can extract, store, and search metadata that is embedded in binary image files.
    *Collect new metadata from a user, format the metadata into an XML document, and store the document in the binary image.
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14302/ch_webapp.htm#sthref144

  • "error while saving image"

    has anyone had the problem where, when they select option and tap an image (in my case i pulled one from my email using an image i uploaded from my drive) and gotten an error that says "there was an error saving image" and your only option is 'ok'? i've read other forums and understand that jpeg's are the ideal form, and this had a .jpg extension.
    any thougths anyone?
    so many thanks in advance.
    -wren
    Post relates to: Pixi Plus p121vzw (Verizon)

    hey thanks , but my jdbc pool and driver is fine. what may be the problem and I am not able to change the type to BlobDomain in eo. The type i Blob only may be this is the problem how can I change it to Blob Domain

  • Saving images from camera raw in new CC suite

    Hi Im having trouble re saving images from new adobe cc bridge camera raw, images once saved then show in bridge with no adjustments done in camera raw and the images are downsized to KB size images even from a 9.20mb raw image, Ive looked at setting or rather preferences and totally lost please help!!
    Thank you
    Jon

    This forum is actually about the Cloud, not about using individual programs
    Once your program downloads and installs with no errors, you need the program forum
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll
    http://forums.adobe.com/community/bridge

  • How to insert image into table and to in Oracle 9i intermedia?

    Mr Lawrence,
    I want to ask something:
    I use Oracle 9i intermedia
    If i use this script:
    CREATE TABLE images (
    file_name VARCHAR2(100) NOT NULL,
    image ORDSYS.OrdImage
    then
    CREATE OR REPLACE DIRECTORY imgdir AS 'd:/data';
    then
    INSERT INTO images (file_name, image)
    VALUES ('tree', ORDSYS.ORDImage.init('file','imgdir','tree.jpg' ));
    I put tree.jpg in directory d:/data in my hard drive.
    Is my tree.jpg file had already get in to my images table?
    I'm little confuse, because when i check my table with this script:
    select file_name, i.image.getWidth() from images i;
    it's show that my i.image.getWidth() for file_name tree is empty.. that mean my tree.jpg doesn't get in to my table.. am i correct?
    N also i want to ask how to display to screen all of my image from images table?
    Is it posible Oracle 9i intermedia to support display image from table?
    How?
    thanks Mr Lawrence

    -- First step would be to create a directory in oracle and map it to the folder where your image resides.
    create directory image_dir as *'c:\image_dir';*
    Then you would have to use a procedure to insert the image in your table. SO first create a table to hold the image. Note that you have to use a BLOB to insert the image.
    CREATE TABLE test_image
    ID NUMBER,
    image_filename VARCHAR2(50),
    image BLOB
    Now let's write the procedure to insert the image in the table above.
    CREATE OR REPLACE PROCEDURE insert_image_file (p_id NUMBER, p_image_name IN VARCHAR2)
    IS
    src_file BFILE;
    dst_file BLOB;
    lgh_file BINARY_INTEGER;
    BEGIN
    src_file := BFILENAME ('image_DIR', p_image_name);
    -- insert a NULL record to lock
    INSERT INTO temp_image
    (ID, image_name, image
    VALUES (p_id, p_image_name, EMPTY_BLOB ()
    RETURNING image
    INTO dst_file;
    -- lock record
    SELECT image
    INTO dst_file
    FROM temp_image
    WHERE ID = p_id AND image_name = p_image_name
    FOR UPDATE;
    -- open the file
    DBMS_LOB.fileopen (src_file, DBMS_LOB.file_readonly);
    -- determine length
    lgh_file := DBMS_LOB.getlength (src_file);
    -- read the file
    DBMS_LOB.loadfromfile (dst_file, src_file, lgh_file);
    -- update the blob field
    UPDATE temp_image
    SET image = dst_file
    WHERE ID = p_id AND image_name = p_image_name;
    -- close file
    DBMS_LOB.fileclose (src_file);
    END insert_image_file;
    Now execute the procedure to insert the image.
    EXECUTE insert_image_file(1,'test_image.jpg');
    Thanks,
    Aparna

  • Data type for Saving Image in SQL database

    Hi,
        Which is the best way for saving images in the database? Filestream or Varbinary(max)?. Will the Varbinary max comsume much space or it will only take the actual size of the data?

    I've used FILETABLE for storing images in SQL 2012
    You can configure it to have transact and non transact access if you want
    see
    http://visakhm.blogspot.in/2012/07/working-with-filetables-in-sql-2012.html
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How do I stop Firefox from grabbing my saved images and coverting them to Firefox?

    I am working on images in Dreamweaver and Adobe Photoshop, and when I try to save them, Firefox coverts them into Firefox images with a Firefox icon and then I can't edit them properly in Photoshop or Dreamweaver. How do I stop Firefox from grabbing my saved images? in English

    I will try that, but it's pretty time consuming to have to check that for each of my images. I am a web designer and I work with a lot of images.
    Is there any way to set that globally for all of my saved images?

  • Pages 5.0 removing images from tables.

    After upgrading to Pages 5.0 I now receive a message when opening any file with a table that has images in the cells.  Basically Pages is removing all images from table cells.  Anyone having this problem and is there an easy fix?

    DrBrian, this is what I did to resolve this issue.  I found out that we may still have Pages 09 installed on our systems! Go into Finder - Applications.  If you have a folder titled iWork 09 click it and you may find Pages 09 there.  Double click to open Pages version 09 where you will be able to open all of your files just as they should be. 
    I will not be using the new Pages upgrade.  I have too much time invested in creating documents and templates for my business and I am not willing to re-learn a new package which has much less functionality.  Hope this helps you.

  • Why do the file extensions (.jpg .gif .png) no longer appear when I click on a previously saved image to use that image's file name (particularly important when saving a series of images using the same root name)?

    I save a lot of images using firefox, often times from a large batch or series of images. It used to be that I would click on a previously saved image and the entire file name including the file extension (i.e. image_example.jpg) would appear in the "save as" line. Now when I click on a previously saved file, the file name appears without the file extension (i.e. image_example). Which means I have to manually type .jpg every time. For a large collection of images that I am hoping to use the same root file name and then add chronological numbers at the end, this has become incredibly frustrating, especially as it is a previously unnecessary task.
    I am using a new Macbook Pro and maybe there's something Apple related to this...? It did not happen on my old PowerBook G4. I have file extensions turned on in System Preferences.
    It should be noted that I have searched high and low and have even gone into the Apple Genius Bar where they were just confused as I was and of course ended by urging me to use Safari (shocker!) as it has all kinds of new extensions and bells and whistles. I seriously feel alone on an island with this dumb, hard to google problem. Thanks so much for any help anyone out there might have.
    I mean: is this as simple as changing a setting in about:config?
    Your assistance is greatly appreciated.

    Thanks for your response Mylenium, however like I mentioned multiple times, I did change all of my trackpad/scrolling settings in system preferences.  And if I wanted to use a normal mouse (or a tablet), I would've gotten an iMac instead of a MacBook Pro.  I travel often and work all over the place, not always with access to a decently sized workspace that would be required for using a mouse or tablet.

  • Saving image in ms sql database.

    Hi all, i have a problem saving image in the database.i used
    request.getParameter("imagename"), to get the content of the textfield in the html file but the problem is that it omits the filepath and gives me just the image name and that gives me an error.. Pls help me

    Your actual problem is less or more web browser related. The right way is that the browser should only send the filename, but a certain widely used browser developed by a team in Redmond would send the full file path as it is at the client side, which is completely wrong.
    The bigger picture what you're trying to achieve, uploading a file from the client to the server, shouldn't be done that way, simply because this isn't going to work at all if the client runs at a completely different machine on the other side of the network than where the server runs. You need to send the actual file contents to the server. Just set the form's enctype to multipart/form-data and parse the body of the request to get the actual file contents. To ease the work I recommend you to use Apache Commons FileUpload API for parsing the multipart/form-data request. Go to their homepage and check out the 'User guide' and 'Frequently Asked Questions' how to use it and for some tricks.

  • How to store the images in tables

    how to store the images in tables .what is the use of "clob ,blob"

    Using with the CLOB or BLOB, you can store the images in the table.
    Srini C

  • Inserting blob image into table

    ora.gif, image001.jpeg are the image names .these are stored in the location D:\oracle\Bfiles
    create directory BFILE_FILES as ‘D:\oracle\Bfiles';
    i want to insert the 2 images into table using blob
    how to create the table and how to insert and how to test that image is inserted or not

    Tom Kyte has it all Here

Maybe you are looking for

  • How to automate the Acrobat Reader plugin in Internet Explorer

    Hi, I have been trying to figure out how to automate the Acrobat Reader plugin in Internet Explorer. My goal is to find a way to allow users of our web application to print PDFs to the default printer without having to go through the plugin's GUI. Ou

  • Something stuck in my optical drive

    And unluckily it's not a CD or DVD. There's an SD card stuck in there (never lend anything to your housemates) and I've tried to grab hold with a piece of paper, and also inserted and ejected a CD to try and coax it out but it just won't move. What a

  • Alternate to kb970199

    During SP 2007 days, there was a problem with SharePoint/Outlook/Infopath integration and kb970199 was a rapid publishing article that talked about a work around for the issue. The solution was installing a "form template installer tool" component on

  • Sun cluster: virtual IP address

    Hi, What is the virtual IP address and how to configure it? For example, should it be defined in /etc/hosts? dns? Thank you,

  • Where and how can I download free apps for my iPad

    Hi, I just bought an ipad2. Can anyone tell me how can I download some free apps for my device?