Regarding Images save in SAP database

HI Sapers,
our client is having the business scenario like, Material will be supplied by vendor is in bulk quantity, ex. they will sent the material through transport vehicles, at the time of receiving the material from vendor the security people will needs to create a gate pass which consists of vehicle number plate image and diver image,
The material sent by vendor is against a P.O. only, we can get the all the information from SAP data base, my basic requirement is how we can save the JPEG files in to sap data base. pl provide the necessary steps of it.
Thanks in advance,
Venkat.

HI,
Check the links
http://www.sap-img.com/oracle-database/how-to-save-an-image-in-a-sql-server-database.htm
http://help.sap.com/saphelp_banking463/helpdata/en/7d/f63a25015111d396480000e82de14a/content.htm
http://help.sap.com/SAPHELP_NW70EHP1/helpdata/EN/43/a996152ce41bbde10000000a1553f7/content.htm
Regards
KK
Edited by: Kishore Kumar Galla on Mar 18, 2010 11:52 AM

Similar Messages

  • Save an Image in a MySQL database

    I am trying to save an image in a MySQL database. This is what I have done so far; I have created a table with one of the variables called
    photo  blob, this is what you use to save an image right?
    When I write the image to the database after getting connected to it is where I am stuck, so far I can save Ints, Strings and Enum s values but I do not know how to convert my image into a Blob and save the blob. I have been doing some light reading and I am guessing I have to convert the image into a Stream of some sort. What type of stream I do not know. This is the java command I have to save the Blob but do not know what to use as the variable for the Blob.
    prst.setBlob(5,  "??????");As you can tell by the ????? marks, I do not know how to convert my image into the proper data type(whatever the data type is?) to save the contents into the database.
    If somebody has the exact copy of the all the java coded steps that is needed to save an image as a Blob into a prepared database, that would be extremelu helpful to me.
    Thank-you.

    The answer has to be quite simple. If you do not have
    the answer please do not reply.Unfortunately it's not simple. This is one of my betes noire about the java libaries. The Blob stuff has gaping holes in it. There's no method, anywhere, to create a new Blob or Clob (also the design of the Blob and Clob interfaces tends to miss the point).
    The ways arround this, there being no legitimate approach, vary with the database provider.
    If the program an the server are running on the same machine (or files can be shared through NFS or the like) you can try the "LOAD_FILE" function.
    With some databases I believe setBinaryStream instead of setBlob works, but I'm not sure the mySql driver is that smart.

  • Saving in sap database using kpro

    hie gurus, I'm configuring dms for the first time in ECC 6.0. I'm trying to store files in SAP DB using kpro however when I have created and checked  in originals  when i try to save the DIR i get an error that says error when trying to save with kpro. What could be the problem  ? please help.
    regards musi

    Hi Musiyandakarue 
    You have set Indicator Use KPRO in Define Document Types. So remonve this Selection.
    Please Go through these Links for your Problem.
    Storage of Data in Storage Systems Using the Knowledge Provider
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/8a/d31c34044611d3951d00a0c92f024a/content.htm
    Checking an Original Application File into the SAP Database
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/c1/1c27f743c711d1893e0000e8323c4f/content.htm
    This will clear your Problem.
    With Regards
    Mangesh Pande

  • "Image Save As" not aviable because Contect Menu on right mouse click

    Hi,
    I have a web report with a sheet and a graph. I would like to save the graph via right mouse click "Image Save As" but the IE menu is not available because the SAP menu is active on right mouse button. How can I activate the IE context menu?
    Regards, Thomas

    Hi,
    I need more information. At the moment my object looks like this one.
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="CHART_1"/>
             <param name="ITEM_ID" value="TEST"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_2"/>
             <param name="TMP_CHART_DATA_HANDLE" value="IIP_0QWUSH2MVM2IIXXE5MMZ8LVHX"/>
             ITEM:            CHART_1
    </object>
    Regards, Thomas

  • Which Datatype I have to use for Images in MS-Access Database.

    Hi Friends...
    I am Atif. I have stucked in a query. Please suggest me. 
    Which Datatype I have to use for Images in MS-Access Database ?
    Thanks in advance..
    Regards
    Atif

    Depends upon whether you are referring to a variable or the data type of the column in which to store the data. For a table you should use an OLE Object. For example, you could use something like the following to store an image into a Access table from a
    PictureBox (sans OLE header):
    Dim AccessConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
    "Data Source=C:\Test Files\db1 XP.mdb")
    Dim AccessCommand As New OleDbCommand("INSERT INTO BlobTable (ID, BLOB) " & _
    "VALUES (@ID, @BLOBData)", AccessConnection)
    Dim PictureMemoryStream As MemoryStream = New MemoryStream()
    Form3.PictureBox1.Image.Save(PictureMemoryStream, System.Drawing.Imaging.ImageFormat.Jpeg)
    Dim BLOBData(PictureMemoryStream.Length - 1) As Byte
    PictureMemoryStream.Position = 0
    PictureMemoryStream.Read(BLOBData, 0, PictureMemoryStream.Length)
    AccessCommand.Parameters.AddWithValue("ID", 7)
    AccessCommand.Parameters.Add("BLOBData", OleDbType.LongVarBinary, BLOBData.Length, DataRowVersion.Current).Value = BLOBData
    AccessConnection.Open()
    AccessCommand.ExecuteNonQuery()
    AccessConnection.Close()
    Paul ~~~~ Microsoft MVP (Visual Basic)

  • How to insert an image file in Oracle database

    hi
    can you please tell me how to insert an image file into oracle database????
    suppose there is one image file in c:\pictures\rose.jpg. how to insert that file into database? theoretically i know that will be BFILE type but i dont know how to insert that.
    will be waiting for your reply........
    thanks & regards,
    Priyatosh

    Hello,
    The easiest way to load a blob is to use SQL loader.
    This example comes from the utilities guide:
    LOAD DATA
    INFILE 'sample.dat'
    INTO TABLE person_table
    FIELDS TERMINATED BY ','
    (name CHAR(20),
    1 ext_fname FILLER CHAR(40),
    2 "RESUME" LOBFILE(ext_fname) TERMINATED BY EOF)
    Datafile (sample.dat)
    Johny Quest,jqresume.txt,
    Speed Racer,'/private/sracer/srresume.txt',
    Secondary Datafile (jqresume.txt)
    Johny Quest
    500 Oracle Parkway
    Secondary Datafile (srresume.txt)
    Loading LOBs
    10-18 Oracle Database Utilities
    Speed Racer
    400 Oracle Parkway
    regards,
    Ivo

  • How to insert a image file into oracle database

    hi all
    can anyone guide me how to insert a image file into oracle database now
    i have created table using
    create table imagestore(image blob);
    but when inserting i totally lost don't know what to do how to write query to insert image file

    Hi I don't have time to explain really, I did have to do this a while ago though so I will post a code snippet. This is using the commons file upload framework.
    Firstly you need a multi part form data (if you are using a web page). If you are not using a web page ignore this bit.
    out.println("<form name=\"imgFrm\" method=\"post\" enctype=\"multipart/form-data\" action=\"FileUploadServlet?thisPageAction=reloaded\" onSubmit=\"return submitForm();\"><input type=\"FILE\" name=\"imgSource\" size='60' class='smalltext' onKeyPress='return stopUserInput();' onKeyUp='stopUserInput();' onKeyDown='stopUserInput();' onMouseDown='noMouseDown(event);'>");
    out.println("   <input type='submit' name='submit' value='Submit' class='smalltext'>");
    out.println("</form>"); Import this once you have the jar file:
    import org.apache.commons.fileupload.*;Now a method I wrote to upload the file. I am not saying that this is correct, or its the best way to do this. I am just saying it works for me.
    private boolean uploadFile(HttpServletRequest request, HttpSession session) throws Exception {
            boolean result = true;
            String fileName = null;
            byte fileData[] = null;
            String fileUploadError = null;
            String imageType = "";
            String error = "";
            DiskFileUpload fb = new DiskFileUpload();
            List fileItems = fb.parseRequest(request);
            Iterator it = fileItems.iterator();
            while(it.hasNext()){
                FileItem fileItem = (FileItem)it.next();
                if (!fileItem.isFormField()) {
                    fileName = fileItem.getName();
                    fileData = fileItem.get();
                    // Get the imageType from the filename extension
                    if (fileName != null) {
                        int dotPos = fileName.indexOf('.');
                        if (dotPos >= 0 && dotPos != fileName.length()-1) {
                            imageType = fileName.substring(dotPos+1).toLowerCase();
                            if (imageType.equals("jpg")) {
                                imageType = "jpeg";
            String filePath = request.getParameter("FILE_PATH");
            session.setAttribute("filePath", filePath);
            session.setAttribute("fileData", fileData);
            session.setAttribute("fileName", fileName);
            session.setAttribute("imageType", imageType);
            return result;  
         } And now finally the method to actually write the file to the database:
    private int writeImageFile(byte[] fileData, String fileName, String imageType, String mode, Integer signatureIDIn, HttpServletRequest request) throws Exception {
            //If the previous code found a file that can be uploaded then
            //save it into the database via a pstmt
            String sql = "";
            UtilDBquery udbq = getUser(request).connectToDatabase();
            Connection con = null;
            int signatureID = 0;
            PreparedStatement pstmt = null;
            try {
                udbq.setUsePreparedStatements(true);
                con = udbq.getPooledConnection();
                con.setAutoCommit(false);
                if((!mode.equals("U")) || (mode.equals("U") && signatureIDIn == 0)) {
                    sql = "SELECT SEQ_SIGNATURE_ID.nextval FROM DUAL";
                    pstmt = con.prepareStatement(sql);
                    ResultSet rs = pstmt.executeQuery();
                    while(rs.next()) {
                       signatureID = rs.getInt(1);
                    if (fileName != null && imageType != null) {
                        sql = "INSERT INTO T_SIGNATURE (SIGNATURE_ID, SIGNATURE) values (?,?)";
                        InputStream is2 = new ByteArrayInputStream(fileData);
                        pstmt = con.prepareStatement(sql);
                        pstmt.setInt(1, signatureID);
                        pstmt.setBinaryStream(2, is2, (int)(fileData.length));
                        pstmt.executeUpdate();
                        pstmt.close();
                        con.commit();
                        con = null;
                if(mode.equals("U") && signatureIDIn != 0) {
                    signatureID = signatureIDIn.intValue();
                    if (fileName != null && imageType != null) {
                        sql = "UPDATE T_SIGNATURE SET SIGNATURE = ? WHERE SIGNATURE_ID = ?";
                        InputStream is2 = new ByteArrayInputStream(fileData);
                        pstmt = con.prepareStatement(sql);
                        pstmt.setBinaryStream(1, is2, (int)(fileData.length));
                        pstmt.setInt(2, signatureID);
                        pstmt.executeUpdate();
                        pstmt.close();
                        con.commit();
                        con = null;
            } catch (Exception e) {
                con = null;
                throw new Exception(e.toString());
            return signatureID;
       }

  • How to upload the data from XML file to SAP database using IDOC

    Hi,
    I need some steps  to upload  data from XML format file from other directory to SAP database using IDOC.
    how to approch this please if any one knows give me ans
    it will be a great help ful to me
    Thanks in Advance
    Mallik

    Thank you vijay,
    But i heard that by using this Fun modules, when we are passing IDOC in back ground schedule,  so some other depended FM not supporting, so how to approach this and how to avoid this problem. 
    Have you worked on this before if any one worked on this please help me out
    And thank you once again for your valuable information
    Best Regards
    Mallik

  • Document stores in both SAP database and Content Server

    Hi,
    We don't want to store doc. in SAP database and chose to use content server. We have KPro checked in configuration also.
    Our basis team has created a content repository ZP that points to the content server, in the document area.. they enter "ARCHLINK" instead of DMS. So they told me to create doc. and pick this new ZP to store the doc. But we I created a doc. in CV01N, went to check in the original, the new repository ZP is not on the list of choice to pick from. So I cannot store the doc. in that new content repository.
    Our basis team told me that if we use DMS in the document area, the doc. stores in both SAP database and Content Server. We don't want to have doc. stores in SAP database that's why we have content server.
    How can I create DMS and store in content server only (not SAP database) ?
    Thank you,
    Sam Schwartzberg

    Hi Samantha,
    While check-in activity are you able to choose the new content repository i.e. ZP?
    If not then use t-code OAC0 and while creating the repository check whether the certificate is activated by basis or not .
    If not then you need to activate the certificate for the new repositoty in CSADMIN then only it will appear in the list while "check-in" the dcouments.
    Please check for the same. Also check the t-code OACT , this new repository is shown or not.
    I hope this will resolve the query.
    Regards,
    Ravindra

  • DMS Storage in SAP Database with Kpro.

    Hello SAP Gurus,
    we are using the ECC 6.0 client and still have not configured any content servers for storing the originals,
    but i could make use of Kpro Tick in Document type and attach n no of file to DIR,
    also i have tried using KPRO tick and also making the file Size as 00000,
    but its working and allowing me to store originals in DMS_C1_S1 content repository.
    But when i dont give Kpro tick in document type, then original is not checked in using KPRO, (but again it is also storing original in SAP Database), then it is at this point it is required to give the file size or else it is giving the error,  what is the reason for this strange behavior,
    as in both the case the document is getting stored in SAP database only.
    as content repository DMS_C1_S1 is again using SAP Data Base itself. (Verify from OACT transaction.)
    Please clarify,
    Points awaiting.
    regards
    Priya

    Dear friends thanks for your reply,
    as i have detailed in my quiry,
    i could see  if we use Kpro we can attach more than 2 originals in a DIR, and also get the advantages of Kpro,
    and if i dont give Kpro tick only 2 originals can be attached in the original.
    but in both the cases the original is being stored in the SAP Database only.(in my case as content server is not yet installed)
    i want to know as the original files if stored in SAP DMS either with Kpro or with out Kpro, can this original files stored be copied in to external storage device say CDs and opened with out SAP logon. (like opening the files in normal windows system)
    thanks and regards,
    Priya
    Edited by: Priya S on Feb 19, 2009 11:46 AM

  • How to read data from SAP database in java?

    Hi All ,
    I want to read some tables from SAP database in java? How to connect to SAP database in java.I want to read the data from SAP NetWeaver BW 7.3.
    Please help..

    Download Vder [http://binhgiang.sourceforge.net/site/download.jsp|http://binhgiang.sourceforge.net/site/download.jsp]
    Extract date from website, output to xml format then save to database (MySQL, Oracle,...)
    Screenshot: [http://binhgiang.sourceforge.net/xmlalbum/screenshots.html|http://binhgiang.sourceforge.net/xmlalbum/screenshots.html]
    Edited by: Nhu_Dinh_Thuan on Jul 23, 2009 9:55 PM
    Edited by: Nhu_Dinh_Thuan on Jul 23, 2009 9:56 PM

  • Image gallery in SAP EP

    Hi folks,
    I'd like to receive some comments on the topic "Image gallery in SAP EP" as quite often there is a need for storing content in form of images in the KM and the standard renderers available do not satisfy advanced scenarios or non-SAP standard environments.
    As there is heaps of image gallery libraries around for usage in standard web pages and open portals - mostly based on Java or Javascript - I wonder if these can be easily used within SAP EP.
    So my question: Did anyone integrate a free image gallery software into SAP EP and are there any drawbacks/experiences or remarks you might want to share with me?!
    The gallery should sport thumbnails previews, tagging, additional attributes, convenience functions (mass-renaming, mass-resizing), flashy previews, etc.
    Thanks for your help!
    regards,
    Christian

    Well, we are surprised we haven't seen this before but here's
    what we discovered.
    Safari converts uppercase letters in attributes to lowercase.
    Since XML is case sensitive, therefore IMAGEID becomes
    imageid. Since your data references are still uppercase, they fail
    to match and you get undefined.
    Uppercase attributes are rare, hence this is the first we
    have seen of this error.
    To see this in action, try this in your page:
    <script>
    var rows = datasetname.getData();
    if (rows && rows.length)
    alert(Spry.Utils.serializeObject(rows));
    </script>
    To solve this, convert your XML files to use lowercase
    attribute names.
    We will write this up somewhere.
    Thanks for posting.
    We are pleased to see a good use of Spry data, effects and
    widgets on one site. I will add your site to our wiki page, if you
    don't mind.
    http://labs.adobe.com/wiki/index.php/Spry:SprySites
    Thanks,
    Donald Booth
    Adobe Spry Team

  • Save procedures within database instead of reports

    I need to execute a procedure before the report to run. Can I
    save it to database and call to execute from report instead of
    saving it as before report trigger?
    Thanks in advance!
    Winnie

    Hi
    You are welcome :-) let's try to bring you to solution.
    Regarding the application side (the C# if you want):
    As a developer you should know that a text is the value of a String. A string is a collection of characters. A "new line" is nothing but a simple character like char(10)+char(13). The String can include those characters. Using HTML we use the
    markup or a tag <br> in order to break line (new line). Again this is simple characters. In short, It is look like you need to use String.
    * sqlcommand is not SQL Server command but C# CLASS: http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand(v=vs.110).aspx
    **I am getting the feeling that there is some confusion between the application (C#) and the database (T-SQL).
    I am not sure that I understand where is your problem. Is it in the SQL Server, or the Displaying of the data, Or the inserting from the app to the Database, Or pulling from the database from the app...
    Can you please post some codes, screenshots, clarification... ?
    [Personal Site] [Blog] [Facebook]

  • Passing data from JAVASCRIPT to SAP database

    Hi Experts,
    Is it possible to connect or access RFC function module through JAVASCRIPT? I want to send data from JAVASCRIPT to SAP database table.
    Is it possible to pass data from JAVASCRIPT to SAP database table?
    Thanks in advance.
    Regards,
    Arindam Samanta.

    OData services can be one option to achieve this.
    Another possibility can be use of Generic REST enablement with SAP NetWeaver Gateway.
    If you are not considering Gateway at all, then  A JSON adapter like the one mentioned in JSON Adapter for ABAP Function Modules can be handy.

  • The relationships and links between the various SAP database tables

    Hi Gurus,
    I am trying to learn the relationships and links between the various SAP database tables (SAP FI-AA, SAP SD, SAP MM, SAP HR and so on) for correctly extracting data from them. Especially I am expressing an interest in the SAP database tables on SAP FI-AA, SAP SD, SAP MM, SAP HR. Could somebody provide me with documentations about the relationships and links between them. I will be very grateful if somebody can provide me with links.
    Thanks and regards
    Sergey

    hi Sergey,
    try
    http://www.erpgenie.com/abap/tables.htm
    http://www.erpgenie.com/abap/tables_fi.htm
    http://abap4.tripod.com/SAP_Tables.html
    http://abap4.tripod.com/Finance_Tables.html
    http://www.auditware.co.uk/SAP/Extras/SAPTables.pdf
    hope this helps.

Maybe you are looking for