Different ways to store/retrieve blob

Hi,
Can somebody explain to me , the methods available to store a file(different formats .pdf,.doc,.gif etc..)
as blob in to database and retrieve as the same file.??
I'm using forms6i and database10g.
I first tried with DBMS_LOB package, but during retrieval, the retrieval procedure should be invoked through a web browser and the blob content will be downloaded to the browser.
But i dont want the browser to come into picture.
Pls help.
Thanks
Divya

Hi,
Not sure about PDFs and DOcs but Images you can store in database by using Forms 6i
use the similar code to write image in Image item field which is BLOB
--To Load Image or files
DECLARE
      filename VARCHAR2(1000) ;
BEGIN
     filename := GET_FILE_NAME(File_Filter=> 'JPEG Files (*.jpeg)|*.jpeg|');
     READ_IMAGE_FILE(filename, 'JPG', 'myblockname.myItemName');
END; and later you can commit image will store in database
-- To delete image from Db use
update mytable
set myImageColumn = EMPTY_BLOB()
where myId = :my_id;if you dont want to use File open dialog then use WRITE_IMAGE_FILE built-in
try with BLOBs i guess you can store them as well

Similar Messages

  • Store, Retrieve and Display picture or video to/from DB2 using JDBC

    I need an idea for implementing the"Store, Retrieve, Display Image/Video" concept in JDBC. My Database is DB2. I could not get proper info from google.
    Thanks and Regards
    Muthukris Bala

    Muthukris wrote:
    I need an idea for implementing the"Store, Retrieve, Display Image/Video" concept in JDBC. My Database is DB2. I could not get proper info from google.
    1. Figure out how to display image/video
    2. Figure out how to encode/decode a image/video into a byte array
    3. Design a database suitable for your application that stores blobs
    4. Figure out how to use JDBC to store/retrieve blobs via byte arrays.
    Steps 1 and 2 have nothing to do with this forum (nor GUI code). There is at least on forum on this site that deals with questions about that.
    Steps 3 is only somewhat related to this forum. A DB2 forum would be best.
    Step 4 is the only part of this that is specific to this forum. And if you have not used any JDBC then you first start with the tutorial or some other suitable method to learn how JDBC works before attempting blobs.

  • TS2771 My ipod touch will not hare no matter what and I've tried many different cables and different ways to charge it. What should I do? If I complain to the Apple store co. will they replace my ipod for free?

    My ipod touch will not hare no matter what and I've tried many different cables and different ways to charge it. What should I do? If I complain to the Apple store co. will they replace my ipod for free?

    - See:
    iPod touch: Hardware troubleshooting
    - Try another cable
    - Try another charging source
    - Look at the dock connector on the iPod. Look for abnormalities like bent or corroded contacts, cracked or broken plastic.
    - Make an appointment at the Genus Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • What are the different ways of retrieving data from Oracle8i

    What are the different ways of retrieving data from Oracle8i
    into my HTML page ?
    Is it JDBC and ODBC ?
    Is there any other way ?
    null

    Methods I tried,
    Applet using SQLJ/JDBC with JDBC drivers thin or Oci8,
    Oracle Web Publishing Assistant,
    HTP/HTF PL/SQL packages (if you have OAS 4.0)
    Webserver Generator of Designer 2000 (if you have OAS 4.0)
    Arun (guest) wrote:
    : What are the different ways of retrieving data from Oracle8i
    : into my HTML page ?
    : Is it JDBC and ODBC ?
    : Is there any other way ?
    null

  • How to store and retrieve blob data type in/from oracle database using JSP

    how to store and retrieve blob data type in/from oracle database using JSP and not using servlet
    thanks

    JSP? Why?
    start here: [http://java.sun.com/developer/onlineTraining/JSPIntro/contents.html]

  • I have various devices with different capacities, but my iphone 5 won't sync as it says i'm overcapacity? it there any way to store onto the icloud and not the device?

    I have an ipad and iphone 3gs 32gb, an iphone 5 and nano 16gb and also purchased 15gb on icloud. My iphone 5 won't sync as it says it is over capacity. Is there any way to store on icloud and not my device? Is having the various capacities on each device is pointless?

    Just select less to sync with the iphone 5.
    Each device will only sync what you select.

  • What is the best way to store data for this project?

    hey everyone,
    I have been subscribed to this for a while, not sure if I have ever actually asked anything though.
    I have a project on the go for myself/portfolio
    It is a booking sheet, where by I have a GUI that has a diary system of a day followed by time slots. This also has a date picker that can change the date of the booking sheet
    I want to be able to store mainly strings and ints,
    I need to be able to store, retrieve and on occasion change some data.
    I was looking at using something called JExcelAPI but I cant get that to work at all, I asked for assistance but was refered to here.
    what would be the best way to implement this data storage?
    davyk

    Hey everyone,
    Back again,
    I got this this little snippet of code working but want to ask you guys for a little bit of help on it. if thats ok?
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         String dataSourceName = "mdbTEST";
         String dbURL = "jdbc:odbc:" + dataSourceName;
         Connection con = DriverManager.getConnection(dbURL, "","");
         // try and create a java.sql.Statement so we can run queries
         Statement s = con.createStatement();
         s.execute("create table TEST1234567 ( column_1 char(27), column_2 char(150), column_3 char(150), column_4 char(150), column_5 char(150), column_6 char(150))"); // create a table
         s.execute("insert into TEST1234567 values('"+date+"','"+a+"','"+b+"','"+c+"','"+d+"','"+e+"',)"); // insert some data into the table
         s.execute("select column_7 from TEST1234567"); // select the data from the table
         ResultSet rs = s.getResultSet(); // get any ResultSet that came from our query
         if (rs != null) // if rs == null, then there is no ResultSet to view
                    while ( rs.next() ) // this will step through our data row-by-row
              /* the next line will get the first column in our current row's ResultSet
              as a String ( getString( columnNumber) ) and output it to the screen */
                   System.out.println("Data from column_2: " + rs.getString(1) );
         s.execute("drop table TEST1234567");
         s.close(); // close the Statement to let the database know we're done with it
         con.close(); // close the Connection to let the database know we're done with it
    catch (Exception err)
         System.out.println("ERROR: " + err);
         err.printStackTrace();
    }there are more columns, but i cut this code down.
    my question is:
    I think I want a method with an if statement to see whether the table is created or not, if not create it, but how do I go about this? I have searched the API and google, but my brain is fried.
    Also do I always have to do the try/catch and have the code of Class.forname to Statement s in all methods that want to deal with the table?
    davy

  • Different way to aggregate Essbase: Cannot aggregate to parent level

    Hi,
    I used to use the following statement in BR to aggregate dimensions:
    FIX("Segment Allocation Base")
    FIX(@IDESCENDANTS("YearTotal"))
    @IDESCENDANTS("Total Company"); /*Total Company is member of spare dimension: Market Segments */
    ENDFIX
    ENDFIX
    The tree structure is like this:
    Market Segments (Never Share)
    |__ No Market Segments (Never Share)
    |__ Total Company (Never Share)
    |__Total Market Segments (Dynamic Calc)
    |__SC (Store) -> Level 0
    |__SE (Store) -> Level 0
    1. However, I found that the parent level cannot be aggregated. After I enter a value for Total Company (I think I am creating a block for Total Company), the above BR works.
    2. If I change the BR to the following statement, it works. I don't need to create the block first.
    FIX("Segment Allocation Base")
    FIX(@IDESCENDANTS("YearTotal"))
    AGG("Market Segments");
    ENDFIX
    ENDFIX
    Any gurus knows the difference about the above 2 different ways to aggregate? What's wrong with the first one?
    Thank you in advance.
    Casper

    Unless you wrote the first statement wrong. The reason the first one doesn't calculate is because it does absolutely nothing
    @idescendant is a declaration not a calculation
    Definition of @idescendant is: Returns the specified member and either (1) all descendants of the specified member or (2) all descendants down to a specified generation or level. You can use this member set function as a parameter of another function, where that parameter is a list of members.
    AGG is a calculation.
    So unless I'm reading it wrong you declare the children of Total Company and then do absolutely nothing. Therefore it has nothing to do with dense/sparse or blocks existing or not.

  • Different ways to referencing Session State variables

    Hi,
    According to APEX documentation there's 4 different ways to reference session state variables: http://download-west.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/concept.htm#BEICHBBG
    In an inline PL/SQL statement, what's the difference when using the different methods? I remember reading something that the bind and static text have a size restrictions. What's the difference between the V() and NV() functions?
    Thank you.
    Martin

    Martin,
    In PL/SQL, the preferable method is to use bind variable notation, e.g., :P1_ITEM. In HTML contexts, you must use &ITEM. notation. In stored procedures, you can use v or nv, the latter function being identical to the former with the additional characteristic that it raises an exception if the retrieved value is non-numeric.
    Scott

  • Different ways to return results using a stored proc to calling application

    Hi, Can someone please suggest me different ways of returning results( set of rows and columns) from a stored procedure to calling application.
    Currently I am using sys_refcursor to return results to front end. Stored proc is executed fast, but cursor access and retrieval of results has some overhead.
    So can you suggest the ways which will be faster than this approach.
    Thanks.

    Currently the procedure executes quickly but the results from the ref cursor are returned slowly, this is because the query is slow, for whatever reason.
    Collecting in all the rows in the stored procedure first before returning them will
    a) Make the stored procedure slower taking the same amount of time to execute as current query takes to complete.
    b) Use more memory.
    c) Put more stress on the network as all rows will be transferred at once instead of using the arraysize/fetchsize to to fetch the rows in smaller packets.

  • XmlDataProvider .... is gone completely in my Xaml file. Why? How many different ways to deal with xml data source through WPF

    I followed a procedure described in a book.
    1. insert "Inventory.xml" file to a project "WpfXmlDataBinding" .
    2. add the XML data source through the data panel of "blend for 2013", named it "InventoryXmlDataStore" and store it in the current document.
    3. dragged and droppped the nodes from the Data panel onto the artboard.
    Then I checked my Xaml file against the one provided by the book
    Xaml file by the book:
    <Window.Resources>
    <!-- This part is missing in my xaml file --><XmlDataProvider x:Key="InventoryDataSource"
    Source="\Inventory.xml"
    d:IsDataSource="True"/>
    <!-- This part is missing in my xaml file -->
    <DataTemplate x:Key="ProductTemplate">
    <StackPanel>
    <TextBlock Text="{Binding XPath=@ProductID}"/>
    <TextBlock Text="{Binding XPath=Cost}"/>
    <TextBlock Text="{Binding XPath=Description}"/>
    <CheckBox IsChecked="{Binding XPath=HotItem}"/>
    <TextBlock Text="{Binding XPath=Name}"/>
    </StackPanel>
    </DataTemplate>
    </Window.Resources>
    <Grid>
    <ListBox HorizontalAlignment="Left"
    ItemTemplate="{DynamicResource ProductTemplate}"
    ItemsSource="{Binding XPath=/Inventory/Product}"
    Margin="89,65,0,77" Width="200"/>
    </Grid>
    my Xaml file:
    <Window x:Class="WpfXmlDataBinding.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="922" Width="874">
    <Window.Resources>
    <DataTemplate x:Key="ProductTemplate">
    <StackPanel>
    <TextBlock Text="{Binding XPath=@ProductID}"/>
    <TextBlock Text="{Binding XPath=Cost}"/>
    <TextBlock Text="{Binding XPath=Description}"/>
    <CheckBox IsChecked="{Binding XPath=HotItem}"/>
    <TextBlock Text="{Binding XPath=Name}"/>
    </StackPanel>
    </DataTemplate>
    </Window.Resources>
    <Grid DataContext="{Binding Source={StaticResource InventoryXmlDataStore}}">
    <ListBox HorizontalAlignment="Left" Height="370"
    ItemTemplate="{DynamicResource ProductTemplate}"
    ItemsSource="{Binding XPath=/Inventory/Product}"
    Margin="65,55,0,0" VerticalAlignment="Top" Width="270"/>     
        </Grid>
    </Window>
    All looks quite the same except the <XmlDataProvider ....> part under <Window.Resources>, which is gone completely in my Xaml file.
    1, Why?
    2, How many different ways to deal with xml data source through WPF?
    Thanks, guys.
    (ps My "WpfXmlDataBinding" runs without problem through.)

    Never do yourself down Richard.
    Leave that to other people.
    It's quite common for smart developers to think they're not as good as they are.
    I coach a fair bit and it's a surprisingly common feeling.
    And to repeat.
    Never use anything ends .. provider.  They're for trivial demo apps.  Transform xml into objects and use them.  Write it back as xml.  Preferably, use a database.
    You want to read a little mvvm theory first.
    http://en.wikipedia.org/wiki/Model_View_ViewModel
    Whatever you do, don't read Josh Smiths explanation.  I used to recommend it but it confuses the heck out newbies. Leave that until later.
    Laurent Bugnion did a great presentation at mix10.  Unfortunately that doesn't seem to be working on the MS site, but I have a copy.  Download and watch:
    http://1drv.ms/1IYxl3z
    I'm writing an article at the moment which is aimed at beginners.
    http://social.technet.microsoft.com/wiki/contents/articles/30564.wpf-uneventful-mvvm.aspx
    The sample is just a collection of techniques really.
    I have a sample which involves no real data but is intended to illustrate some aspects of how viewmodels "do stuff" and how you use datatemplates to generate UI.
    I can't remember if I recommended it previously to you:
    https://gallery.technet.microsoft.com/WPF-Dialler-simulator-d782db17
    And I have working samples which are aimed at illustrating line of business architecture.  This is an incomplete step by step series but I  think more than enough to chew on once you've done the previous stuff.
    http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
    The write up for step2 is work in progress.
    https://gallery.technet.microsoft.com/WPF-Entity-Framework-MVVM-78cdc204
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Best way to store TenantID in Azure

    I'm developing a multi tenant application
    I am using ASP.NET MVC and Asp.net Identity for authentication
    My client can have more than one company and you can change, user have multiple company
    I wonder what is the best way to store the TenantID in azure
    Claims?
    I'm Claims my value is:
    Type = "TenantId"
    Value = is Guid ( difficult or impossible to be guessed by changing the value of the cookie )
    Cache?
    Session ["TenatId"]?
    Router? {tenantid}}/controller/action

    Hi
    When you get a Graph Token from AAD, it has an Issuer claim in the Claims that has the TenantId in it, so you don't need to store the TenantId in a different claim:
    Sample issuer claim:<Issuer>https://sts.windows.net/cbb1a5ac-f33b-45fa-9bf5-f37db0fed422/</Issuer>For your reference of all available claims in AAD token take a look at here:https://msdn.microsoft.com/en-us/library/azure/dn195587.aspx#BKMK_TokenClaims
    Regards
    Aram

  • Best way to store constants

    I'm working on a set of drivers that call functions from a DLL provided by the instrument manufacturer.  They have an extremely detailed manual, which has been very helpful.  When they describe the functions (and the different values I can pass), they use named constants, and then at the end they define the value of each constant.
    This sort of thing works great in a text-based programming language: just assign the appropriate values to the constants at the beginning and you're ready to go.  But what's the best way to store these constants in LabVIEW?
    My initial approach was to use (strictly typedef'd) text rings (or occasionally enums): the constant name was the text string, and the numeric value was the value of that string.  The problem is that they occasionally have multiple constants with the same numeric value, and LabVIEW doesn't let you have duplicate values in a text ring.
    The thing I really like about using text rings is that this way, I have all of the values at hand to use in a control or a constant; I just plop down the appropriate text ring and select the constant I want.  It's also easy to keep consistent across all of the VIs in the project, since it's a typedef.
    But...since it looks like this won't work, at least not completely, what's the best alternative?  Enums wired to case structures that pass out the appropriate value?  Dual arrays, one with the constant name and the other with the value?  Something else?  The downside is that all of the above need some sort of wrapper VI, but I can't think of a way around that.  What would you do? 

    > It's also easy to keep consistent across all of the VIs in the project, since it's a typedef.
    Unlike an enum, the ring's data isn't really part of the typedef. If you drop a (strict typedef) ring constant on the diagram, the data is only up-to-date as of when the constant is dropped on the diagram; it isn't dynamically updated to reflect changes in the data of the underlying typedef. (And of course anything goes with non-strictly typedef rings, where you can set the strings at runtime.)
    As for the best solution, I don't know. Despite the above problems with rings I have still used them for this purpose since usually the definitions don't change with time. Your idea of using an typedef enum + case statement in a VI seems like the safest approach for constants that can have duplicate or nonconsecutive values.
    Message Edited by Rob Calhoun on 08-25-2009 02:52 PM
    Message Edited by Rob Calhoun on 08-25-2009 02:54 PM

  • Any way to open/retrieve encrypted Camera Roll photos

    I had to restore my iphone 3GS.....is there a way to open/retrieve the Camera Roll photos that were on this phone? I regularly sync'd this phone, with "encrypted backup" enabled. 
    I have since purchased a new iPhone4 and want to restore the 3GS encrypted backup (camera roll) to the iPhone 4.

    I'm sure it was the right backup since that was the only backup I ever did.
    Perhaps the iPod Touch issue which I brought it in for the troubleshooting later that day.. also caused it to backup the camera roll pictures up to a point too (The month and a half where I'm missing the other photos)?
    My device issue was that most notifications went missing and the inability for my iPod Touch to update any of my apps. It would show waiting/loading and then just return to a normal app icon like it had finished, but instead the update never occurred. The Apple specialist who helped me seemed puzzled and the final solution employed which worked was updating me to iOS 5.
    I had tried restoring to factory settings and reinstalling previously to going to the Apple store for help. It only fixed my problems for a week, before they returned.
    I do hope tho' I'm not SOL and the rest of the data is hidden in my backup..

  • Best way to store, present en input date/time

    Hi!
    I hope I can make myself clear. I'm designing an APEX application that has a couple of different date-type fields. That application is going to be translated in two different languages, that has different date/time representations. For example: dd-mon-yyyy hh12:miAM and dd-mm-yyyy hh24:mi. I'm now finding out what's the best way to store those date/time fields and hou I can present them in a report/form and how the user can enter them in a field.
    This is what I see:
    - I can set an application date format/application timestamp format. This has to be the in the format of the main language, in this case, English.
    - I also can make translated versions of the application. QUESTION: can I enter a different date format for the translated application?
    Do I have to make my fields of the date type or timestamp type?
    I hope someone can answer. If I'm not clear, please tell me!

    You can set the application date format using an application item
    &DATE_FORMAT_MASK.
    and set this item dynamically.
    Home>Application Builder>Application ####>Shared Components>Edit Globalization Attributes
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

Maybe you are looking for

  • Massive memory hemorrhage; heap size to go from about 64mb, to 1.3gb usage

    **[SOLVED]** Note: I posted this on stackoverflow as well, but a solution was not found. Here's the problem: [1] http://i.stack.imgur.com/sqqtS.png As you can see, the memory usage balloons out of control! I've had to add arguments to the JVM to incr

  • How to use 2 AAA server for different login purpose

    Hello, could you help me? This is a part of my configuration; I would like to add another TACACS server, witch should take care of the telnet at vty 0 4. The Tacacs server 10.20.30.40 takes care of the virtual access, and I have another Tacacs server

  • How to load a large image for display on the Palm PDA

    Hello: I have a large image I would like to display on LV for Palm PDA. The documentation states there should be a 64K chunk limitation for VIs to compile on the Palm. Therefore, I decided to break this image up into 2D arrays of less than 64K per su

  • HT1349 a

    My Macbook pro will no longer send docs to print on wireless printer connected via router, all other online tasks ok. Was working ok, however feel the problem is the mac as another household pc will successfully send docs to print, can anyone suggest

  • Why does 1 new song sync 1000's?

    I have a 160GB ipod and a 64GB ipad 4 (which I've just bought). I have the same music tracks on both, about 7000. If I add 1 track to itunes and sync the ipod, it adds 1 track and takes a few seconds. But the ipad always seems to add 1329 tracks and