JDO and Binary streams

Hopefully not a stupid question, but is it possible to have a JDO bean
accessor return a stream
instead of a byte[] for Blobs?
For large Blobs, it would be nice not having to load the entire thing into
memory.
Thanks,
Eivind Skildheim
Motive Communications, Inc

Eivind,
We do not currently have support for streaming blobs, unfortunately.
This is planned for a future release.
-Patrick
Eivind Skildheim wrote:
Hopefully not a stupid question, but is it possible to have a JDO bean
accessor return a stream
instead of a byte[] for Blobs?
For large Blobs, it would be nice not having to load the entire thing into
memory.
Thanks,
Eivind Skildheim
Motive Communications, Inc
Patrick Linskey [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • Need some assistance in binary streaming and reading

    Hi,
    altough I studied the examples delivered with LabView (my current version is 6i) I have some challenges to face and I hope someone could help me. This challenges
    may be simple for professionals but I'm not already that experienced. I have an one channel AI input via a DAQ-card (E-series) and I want to write it to a binary file with only the really necessary headers. The data then stored in the binary shall than be displayed after user request to a graph and my client wants to have the possibility to srcoll through the hole stored data to seek some charakteristiks and then mark the area of interest with cursor to move this area to another graph for further analysis. My program is structured in a way that in a whi
    le loop I wait for user interaction i.e. buttons for saving and displaying data. It's for that, that I think I have to split the binary streaming in a sub-Vi that makes the needed preparation and another sub-Vi assosiated to the first that makes the file writuing and thats placed within the loop described above. Maybe I'm with my thoughts on the woodway and someone has better ideas. I tried many things but the result were always frustrating. I would be glad someone could give me some hints based on experience, and not just saying "Look to the delivered examples" as I already read in questions from other users. Thanks for your support.
    Chris

    I think you're going at this in a good way. One issue I see is that you are using version 6i and waiting for user input. Since Event Structures were not available in 6i, you will have to poll for user input and that could make your application slower. An upgrade to 6.1 would help you there.
    Besides that, I like your ideas. If you're sticking with 6i, use a case structure inside your while loop which executes a particular case based upon which button the user pressed. Then, in these cases, call the subVIs which you built. I hope this helps out.
    J.R. Allen

  • Setting a null(empty) binary stream in a PreparedStatement

    How can I bind a null binary stream into a PreparedStatement?
    In the following, if pMap is null how do I bind it? If I try to serialize a null pMap I get and error that not all columns bound.
    if(pMap == null)
    else
    byte[] _bytes = SerializeUtility.serializeObject(pMap);
    pStatement.setBinaryStream(pColCount, new ByteArrayInputStream(_bytes), _bytes.length);
    Thanks,
    David

    I was too close to the monitor, couldn't see the big picture ! :-) Now it works.
    Although, I still get that Websphere error:
    7c7fc721 SharedPool I J2CA0086W: Shareable connection MCWrapper id 31c73d Managed connection comm.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl@2e55c73d State:STATE_TRAN_WRAPPER_INUSE from resource jdbc/ds was used within a local transaction containment boundary.
    It use to work fine, no errors.
    Any ideeas??
    mihut

  • Printing: print prepared binary stream with SAPWIN

    Hi .
    We have a lot of different documents(MS Word, MS Excel, TIFF, PDF etc.) stored in DMS.
    Now we need to print them from SAP applications using SAP printers.
    For that we have an external conversion server, that could convert files to any print stream data (PCL, PLC2, PCL5, Postscript, even simple PDF).
    If I use printer with simple device type (e.g. Sapscript driver is HP LaserJet PCL4/PCL5) , I just convert necessary docs into the PCL output, create programmatically a new Spool request with format G_RAW and BIN content and add PCL output to it. And this way works good. But not with SAPWIN device type.
    Does anybody know, if it's possible to print prepared binary stream (PCL, Postscript or other format) using printer with SAPWIN device type? And if yes, how should I create Spool request?
    Thanks in advance.

    Sorry for this up.
    But we still have the problem.
    Any ideas?

  • How to use an binary stream file to generate Arb from Agilent 33250A?

    I used Lv6.1 and ag33xxx.llb (download from NI web page). And I want to generate Arb waveform from Agilent33250A, this Arb according to an binary stream file, just like 0101110010100011.......
    I used "Getting Started 2.vi" module, to try first, and all setting used default value. Instrument can be remote controlled. But what I can see from oscilloscope is very strange. The waveform is start with several sine wave (at very high voltage even to 40Vpp!!) and then several sine wave (at low voltage), then at about 0v. It is not what I want!
    And, if I changed Frequecy or 0/1 data, NOTHING changed of output waveform.
    On Agilent web site, I found there are some vi examples for Agilent33250A. But I can NOT read it for all vi modules in ag33250a.llb. I'm puzzled about where can I find this file ag33250a.llb.
    I'm not sure what's the problem with "Getting Started 2.vi" module, or anything incorrect of my setting. And I want to know how can I do for my project right now?
    I appreciate the help.

    Thanks, Werner.
    I used Agilent54622D scope to check Agilent33250A output directly via coaxial-cable.
    Firstly, that's my mistake to not change scope setting "Probe scale" to 0.5:1, (default is 10:1).
    Then I opened LV ag33xxx.llb (download on NI web site) --> ag33xxx - Getting Started.vi.  Select "waveform shape" is Sine,  Freq is 1KHz, Amplitude is 1Vpp. Run this vi, I can get correct sine wave from scope. Then select some other waveform, such as square and triangle, all are correct.
    After above, I opened "ag33xxx - Getting Started 2.vi", it is used for Arb function. Run this vi directly, output waveform is in attachment. If I changed Freq, nothing changed of waveform.
    So, I'm puzzled about it. Where the issue is?
    You can use Arb mode successfully. How to do it?
    Regards,
    Yue
    Attachments:
    Arb_op.doc ‏26 KB

  • Problem with loading Binary Stream as image

    Hi all,
    I'm facing problem of loading Binary Stream as image.
    from source system we are getting image in XML file as string (i.e binary stream).
    Now i want to load that string again into table as BLOB. i am able to load in to BLOB column but not able to view image properly. it's giving error like "Image has not been decoded properly from binary stream".
    How can i solve this issues?
    Any help.
    thanks in advance.
    Vinay

    michali7x4s1 wrote:
    Thats a code i found somewhere, tried to check how some things work.Have you used exceptions before? If not, please read the sun tutorial on them as they are very very important. Also, whether this is your code or someone else's doesn't matter as it's yours now, and you would be best served by never throwing out exceptions as is done in this code. It's like driving with a blindfold on and then wondering why you struck the tree. It's always best to go through the tutorials to understand code before using it. If it were my project, I'd do it in Swing, not AWT. Fortunately Sun has a great tutorial on how to code in Swing, and I suggest you head there as well. Best of luck.

  • Saving a binary stream to a file

    hello,
    How can i send a binary stream (stream in binary base like : 011101010) to a file. Note that there is a leading zero so the write methods that writes numbers to a file trunc the stream.

    What's your problem? You just break the stream into bytes and write them to the file as just bytes. Leading zeroes aren't truncated.

  • Text mode and Binary mode

    Can anybody give the differences between Text and Binary modes that are used with Datasets??

    For Binary Mode
    The contents of the file are not structured in lines in the  READ DATASET or  TRANSFER operations. Instead, they are input or output as a stream. You do not have to specify the  IN BINARY MODE addition explicitly.
    For Text Mode
    If you use this addition, the contents of the file are structured in lines. Each time you use the  READ DATASET or TRANSFER statement, the system reads or writes a single line. If the data object to which you are transferring the data is too big, it is padded with spaces. If it is too small, the data record is truncated.
    Hope this helps.
    ashish

  • What is difference between TEXT mode and BINARY mode?

    Hi,
              What is difference between TEXT mode and BINARY mode? In TEXT mode what is "ENCODING DEFAULT".
    OPEN DATASET wl_filename FOR INPUT
                              IN TEXT MODE ENCODING DEFAULT.
      OPEN DATASET wl_filename FOR INPUT
                              IN BINARY MODE .

    Hi vishnu,
    1. files like .TXT files are considered to be text,
       and other files like .EXE . DOC etc are binary files.
    2. In text files, after each line, there are two
       internal binary characters
      one for line feed and another one for newline.
    3. But, we don't have any meaning for it,
       when we view such files in notepad, for eg.
       Hence, to only get the understandable content,
       we should open such TXT files, in text mode.
      (we can also open them in binary mode,
      but we will get two extra characters after each line,
       and such two extra characters are meaningless
      for interpreting the text)
    4. In binary mode, each byte by byte is considered,
       without any meaning.
    regards,
    amit m.

  • Rented movie not playing. I have 81Mbps Internet and can stream anything else HD. it's not WiFi either because signal strength is full and I can view anything other than rented movies on apple TV unit. it charges me for renting but doesn't play

    Rented "Gone Girl" on apple tv. It charges me, but will not play for more than 4 seconds at a time. I have exercised every step of apple's troubleshooting and nothing fixes the problem. I have a very strong, steady 81 Mbps Internet connection speed and can stream any other HD through the apple tv except for this rented movie. This is not the first time this has happened either. I just gave apple $6 for free and am currently watching the movie streaming through my cable provider's on demand channel with ease. Oh yeah, and when I seek apple support for the issue, apple wants $2 just to contact someone! Give me my money back please and I will never attempt to use your poor tv service again.

    The limitation of approximately 200 titles has been discussed before, we can't be sure whether it will be something that gets fixed or not. I'm not really sure what your other issues are, if I use search instead of lists, I find whatever I want and am able to rent or purchase subject to those options being available for that particular title.

  • How do i go about linking 2 laptops 3 ipads using the same itunes and to stream all films and music

    how do i go about linking 2 laptops, 3 ipads using the same itunes and to stream all films and music through the house.

    make sure they are all using the same itunes store account and turn on home sharing
    http://support.apple.com/kb/HT3819 - more info about home sharing
    -mvimp

  • How do I transfer photos and videos from my iPhone to my PC using iCloud and Photo Stream?

    I am quite confused with how iCloud and Photo Stream work to transfer photos and videos from my iPhone to my PC. I recently ran out of my space on iPhone so I need to delete all of my pictures and videos but I first want to confirm that they have all been transferred over to my PC. I have iCloud setup but here lately I have been getting the warning message that iCloud could not perform it's backup because I was out of space on iCloud. I had not worried about it since I figured that all of my pictures and videos were on my iPhone anyway and the only reason I would need them on iCloud would be for a backup. Anyway, how can I confirm that everything has been transferred over to my PC? Then, what is the quickest way to delete all of my exisiting photos and videos off of my iPhone? I found the Photo Stream folder on my PC... Is everything automatically added to this when I connect my iPhone to my PC? If I delete something off of my iPhone is it deleted from the Photo Stream folder on my PC? Please help and thank you! I just don't want to lose any of my stuff!

    You don't move them to iTunes or an iTunes account.
    You should be importing them to your computer regularly as you would with any digital camera.
    Import personal photos and videos from iOS devices to your ...

  • I have a brand new mini mac and a new apple TV. Both have been updated and can see my movies in itunes. I can use Netflix and stream music. I have tried to use my old laptop and it streams video fine. But my new computer only see a spinning circle.

    I have a brand new mini mac and a new apple TV. Both have been updated and can see my movies in itunes. I can use Netflix and stream music. I have tried to use my old laptop and it streams video fine. But my new computer only see a spinning circle.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this test is to determine whether the problem is localized to your user account. Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in OS X 10.7 or later, then you can’t enable the Guest account. The "Guest User" login created by "Find My Mac" is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.

  • Java Input and Output streams

    I have maybe simple question, but I can`t really understand how to figure out this problem.
    I have 2 applications(one on mobile phone J2ME, one on computer J2SE). They commuinicate with Input and Output Streams. Everything is ok, but all communication is in sequence, for example,
    from mobile phone:
    out.writeUTF("GETIMAGE")
    getImage();
    form computer:
    reply = in.readUTF();
    if(reply.equals("GETIMAGE")) sendimage()
    But I need to include one simple thing in my applications - when phone rings there is function in MIDlet - pauseApp() and i need to send some signal to Computer when it happens. But how can i catch this signal in J2SE, because mayble phone rings when computer is sending byte array? and then suddnely it receives command "RINGING"....?
    Please explain how to correcly solve such problem?
    Thanks,
    Ervins

    Eh?
    TCP/IP is not a multiplexed protocol. And why would you need threads or polling to decipher a record-oriented input stream?
    Just send your images in packets with a type byte (1=command, 2=image, &c) and a packet length word. At the receiver:
    int type = dataInputStream.read();
    int length = dataInputStream.readInt();
    byte[] buffer = new byte[length];
    int count, read = 0;
    while ((count = dataInputStream.read(buffer,count,buffer.length)) > 0)
    read += count;
    // At this point we either have:
    // type == -1 || count = -1 => EOF
    // or count > 0, type >= 0, and buffer contains the entire packet.
    switch (type)
    case -1:
    // EOF, not shown
    break;
    case COMMAND: // assuming a manifest constant somewhere
    // process incoming command
    break;
    case IMAGE:
    // process or continue to process incoming image
    break;
    }No threads, no polling, and nuthin' up my sleeve.
    Modulo bugs.

  • If I delete photos from my iPhone photos and photo stream, and they are not in the 'Photo Stream' folder on my PC, do they go to the Recycle Bin on my PC, or disappear altogether?

    Hi,
    Sorry if this has been covered before.
    I deleted some photos from both 'Photos' and 'Photo Stream' using my iPhone. They are not in my 'Photo Stream' folder on my PC, but do they go to the Recycle Bin or just disappear altogehter?
    Thanks.

    I am afraid not.
    Photo Stream is a sync tool and not a backup solution.
    If you change the Photo Stream on one device it pushes those changes to all devices.
    Here is some more information about Photo Stream:
    iCloud: My Photo Stream FAQ

Maybe you are looking for

  • Delete credit memo work item created in VA01 when the user change value

    Hi, In T.code VA01 Credit memo request is creating, this document will automatically create  work item.  Based on Net value in credit memo request, the work item should go for 5 levels of approval. After 1st person is approved, the workflow initiator

  • How to create "Business Components Package" in the Jdeveloper ?

    Hi, I installed and set up "Patch 7523554 10G Jdeveloper With OA Extension ARU for R12 RUP6" I have ran out the test_fwktutorial.jsp and test_fwklabsolutions.jsp. All links work properly on these pages. I created HelloWorld page from "Oracle Applicat

  • How to mantain the custmer bom version wise.

    Dear sir iam useing customer bom by cs61. with respect to sales order.when received the sales order , iwll create customer bom by cs61. now i want change the bom components or quality number of times . but in in cs62. when ever change the bom compete

  • Images in Mail Signatures are squished

    Has anyone experienced this issue? I have an image in my mail signature and it's squished down to a set size of about 100x100 pixels. Regardless of the image I use, it's always compressed down incorrectly after upgrading to leopard. This happens on m

  • OPA and configuration folder rename

    Hi All, As we all know there is a configuration folder present in WEB-INF/CLASSES I wanted to rename this configuration folder to configuration_mm for this i edited application.properties file however now i need two folders one with configuration_mm