How do I change Transfer Syntax for DICOM images using sample Java sources?

Hi,
I tested using Note:876534.1 Java API samples. It works fine when I put the "Implicit VR Little Endian" DICOM file.
I could insert the DICOM file, also I could get the all DICOM tags correctly by SQL.
But I could not get all DICOM tags when inserted "Explicit VR Little Endian" and "JPEG Lossy" DICOM file.
Also I could not find how to change the Transfer Syntax to orddicom Java API.
How do I change following simple java source for inserting different Transfer Syntax DICOM file?
Connection conn = DriverManager.getConnection(args[0], args[1], args[2]);
System.out.println("Got database connection");
conn.setAutoCommit(false);
Statement stmt = conn.createStatement();
CallableStatement cs = null;
cs = conn.prepareCall("begin ord_dicom.setDataModel(); end; ");
cs.execute();
cs.close();
String rowInsertSQL = "insert into dicom_test (id, dcmobj) values (" + args[3] + ",ordsys.orddicom())";
stmt.execute(rowInsertSQL);
System.out.println("Inserted empty dicom object ...");
String rowSelectSQL = "select dcmobj from dicom_test where id = " + args[3] + " for update";
OracleResultSet rset = (OracleResultSet)stmt.executeQuery(rowSelectSQL);
rset.next();
OrdDicom dcmProxy = (OrdDicom)rset.getORAData("dcmobj", OrdDicom.getORADataFactory());
rset.close();
System.out.println("selected row for update...");
File testFile = new File(args[4]);
boolean success = dcmProxy.loadContent(testFile, true);
dcmProxy.setProperties();
if (success) {            
String updateSQL = "update dicom_test set dcmobj=? where id=" + args[3];
OraclePreparedStatement opstmt =
(OraclePreparedStatement)conn.prepareStatement(updateSQL);
opstmt.setORAData(1, dcmProxy);
opstmt.execute();
int contentLength = dcmProxy.getContentLength();
String SOPInstanceUID = dcmProxy.getSOPInstanceUid();
System.out.println("contentLength: " + contentLength);
System.out.println("SOPInstanceUID: " + SOPInstanceUID);
opstmt.close();
Thanks,
Tatsuya
Edited by: user13490925 on 2011/01/31 1:48

It would go like this
1. TIFF + XML metadata => DICOM image file
you can use the method ord_dicom.createDicomImage(src blob, metadata xmltype, dest blob) to create the DICOM image in a blob.
2, then use the ORDDicom constructor ORDDIcom(data blob) to create an ORDDicom object
3. then use the ORDDicom processCopy method to change the image properties.
Alternatively you can change image properties on the input TIFF image (using ORDImage methods) then create the DICOM image. If you are happy with the image properties then you can skip step 3.
Edited by: rabbott on Jun 22, 2009 12:41 PM

Similar Messages

  • How can I Change Asset names for swapped images in duplicated symbols?

    I have what seems to be a bug in edge animate cc2014 in following circumstances:
    1. Duplicate a symbol
    2. Drag duplicate symbol onto stage.4
    3. Rename symbol
    4. Click to edit symbol
    5. Select an image inside the symbol
    6. In properties panel change path to swap the image to be used in this instance of the  duplicated symbol ( I need to reuse this symbol many times and not being able to change asset names is a real problem!).
    7. The names for the asset in both the timeline and the elements were auto generated at the time of duplication when try to change the names they revert back to the auto generated  names.
    How can I overcome this problem which is clearly a bug or a poorly thought through bit of programming by an otherwise highly competent adobe edge animate tesm
    Thank in advance
    David.

    Again, incorrect. It's not about how I can address a specific symbol with code - no problems there - it's what the composition loads into the symbol. Try it with some complex component or sub- symbols.
    Work-Around for using Duplicated and Revised symbols (symbol variants) in the SAME document. Solution.
    Tedious, but easy. Low risk. Edge Animate 2014.1.1
    When you duplicate a symbol comprised of symbols itself ("sub-symbols"), only the outermost symbol gets a unique name, not it's component inner symbols. Upon import of additional variants, a unique name is created in the Library/Symbols panel for the inner symbols, yet the references in the outer symbol can't update to use those unique inner-symbol names. Therefore, the composition loads the symbol with the matching name. This will be the first variant to be imported.
    Make the Duplicate
    Duplicate the symbol in the Library/Symbol Panel. Rename. Export.
    Prepping the Symbol
    Open a new document, import and place the new symbol.
    Select the asset to be switched/replaced. Make the switch in the property panel. Properties/Images/Swap button. (I revised my base or source symbol to have different colored background images. This is how I created 4 color variants.)
    Save the new document, of course. "Example1.an"
    Export the revised symbol from the Library/Symbol Panel for safe keeping.
    Return to Example1.an
    Elements Panel: Work through the nested symbols, adding a preceding identifier to all symbols in the heirarchy.
    *KEEP IT SIMPLE so you can easily and quickly move through the .js files in the following steps.*
    Save Example1.an.
    Library/Symbols Panel: Go down the list, renaming all the symbols with the same preceding identifier as was used in the Elements Panel. *I advise to stay parallel with the Elements panel. Change as little as possible.*
    Disregard any odd appearance you may see on the stage for now.
    Save Example1.an
    Revising the Code
    In Edge Code, also part of the Creative Cloud suite, or any code editor, open the two .js files for "Example1.an." found in the same folder...Edge.js and ...EdgeActions.js
    ...Edge.js
    find  "symbolName" - prepend with the identifier whatever is not already prepended.
    at the same time, look for "id" nearby - prepend with the identifier whatever is not already prepended.
    Save
    ...EdgeActions.js
    First read the grey comments about not degrading the //Edge Comments.
    Search the document for "//Edge symbol" - prepend whatever is not already prepended.
    Carefully check all the orange text, prepending the symbol names you find. This same code can be seen in your Code Panel with the "Full Code" button.
    Save
    Return to Edge Animate
    When prompted to Reload, say yes.
    Save Example1.an
    EXPORT your new top level symbol - now a fully separated asset.Now you have created a fully unique symbol, which can be used in conjunction with other variants in the same document.
    Import your new, unique symbol variant it into your real document.
    This is the solution if your Symptoms are:
    I duplicated symbols to make different variations, but now I can't use the duplicated symbol variants together.
    When I try to swap images in a duplicated symbol, it succeeds when used alone, but reverts when used with the original symbol.
    My duplicated symbol works properly alone, but not when it is used with the original symbol.
    My symbol seems to revert to the original source symbol.

  • I cannot downlaod and install any apps.  How do I change the  settings for this?

    I cannot downlaod and install any apps.  How do I change the  settings for this?

    Use this article: iOS 7: If you're asked for the password to your previous ...

  • HT1349 how can I change an email for authorization, the email address we used years back, is no longer a valid email address

    how can I change an email for authorization, the email address we used years back, is no longer a valid email address

    SfromW wrote: ... how can I change an email for authorization, the email address we used years back, is no longer a valid email address
    How to change account here: http://support.apple.com/kb/PH1641
    If you need more help, start here: http://www.apple.com/support/itunes/
    SfromW wrote: ... we can't remember the password from the old email address (for authorization)...
    Help Retrieving and changing passwords here: http://support.apple.com/kb/HT1911
    If you need more help, from iTunes for Windows, click  iTunes > iTunes Store > Support
    SfromW wrote: ... apple should make it easier to transfer authorization authority....I would think anyways.
    You might want to rethink your thoughts about making transferring authority easier.  Making it too easy would certainly degrade your account's security.  If you still believe it should be easier, you can send feedback directly to Apple via http://www.apple.com/feedback/itunesapp.html
    You will not get a response, but you can be certain that the responsible Apple people will see your input for consideration in FaceTime product development.
    As a new user, please understand that you are NOT directly addressing Apple here.  For more info about Apple discussions, start here: http://discussions.apple.com/static/apple/tutorial/etiquette.html 
    Message was edited by: EZ Jim
    Mac OSX 10.7.4

  • How can i change the ringtone for different contacts.  "edit contacts" won't let me`??

    how can i change the ringtones for different contacts on the razor.  "edit contacts" wont allow me to

    Here is the Instructions your Looking For:  Down towards the Bottom of the Instructions shows how to set Ringtones for each Contact.
    How do I download and use ringtones on my DROID  Razr & RAZR MAXX?
    Quick links
    Set any of your songs on your SDcard as a phone ringtone
    Choose Phone ringtones through settings menu
    Customize the text message ringtone
    Assign a ringtone to a specific contact
    Download ringtones from Play Store      
    1. Set any of your songs on your SDcard as a phone ringtone:
    Touch Apps > My music
    While the music is playing, touch the phone Menu Key > More > Use as ringtone 
    The ringtone is set as your default incoming call ringtone and copied to your Phone ringtone list.       
    Note: The above instructions are for the My music player and not for other players such as Play music.      2. Choose Phone ringtones through settings menu:
    Press the Menu key
    Touch Settings
    Touch Sound
    Touch Phone ringtone  (If option is greyed out, make sure handset volume is not set to Silent Mode)
    Select a Phone ringtone from the list. Press OK to set. (Music files you have set as Incoming Call ringtone from your SDcard will be included in this list along with downloaded and preloaded ringtones.
    3. Customize the text message ringtone
    From the homescreen or from within the applications tray, touch Text messaging
    Press the Menu key (On the left with 4 squares)
    Touch Messaging Settings
    Touch Select ringtones (if option is greyed out, make sure Notifications is turned on / actived)
    Touch on any Notification ringtone to select and hear a sample.
    Press OK to set as notification ringtone
    CLICK HERE for instructions on creating your own custom ringtone for Text Messages
    4. Assign a ringtone to a specific contact:
    Press Contacts icon on homescreen or tap on Contacts application from the Applications Tray
    Touch and select the specific contact
    Press the menu key
    Touch Options
    Touch V (down)  icon next to Ringtone
    Choose a Phone ringtone from the list and tap OK to set.
    Note: To assign a music/song from your memory card as a ringtone, first follow step1 above and follow step 4 again. 5. Download ringtones from the Play Store
    From the applications menu, touch Play Store
    Touch search  to search for ringtones.
    Answers others found helpful
    How do I setup and use Bluetooth on my DROID RAZR MAXX?
    How do I transfer files to/from my DROID RAZR MAXX?
    How do I set up and use the Smart Actions application using the DROID RAZR MAXX?
    How do I use the DROID RAZR MAXX for video chat?
    How do I force my DROID RAZR MAXX to reboot or restart?

  • How do you change your thumbprint for iPhone 5s?

    How do you change your thumbprint for the iphone 5s?

    Go to Settings > General > Touch ID & Passcode, enter your passcode, then Turn Passcode Off will delete all current fingerprints. You can then turn passcode back on and enter fingerprints.
    Rather than deleting, you can also add the same fingerprint a second time via "Add a fingerprint" in Settings > General > Touch ID & Passcode, enter your passcode, then Touch ID.

  • How do I change my number for iMessage and facetime

    How do I change my number for iMessage and FaceTime on my iPad mini

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
     Cheers, Tom

  • HT204053 i have an apple id on my ipod & another for my macbook & iphone.  how do i change the id for my ipod to match the one for my macbook & iphone?

    i have an apple id on my ipod & another for my macbook & iphone.  how do i change the id for my ipod to match the one for my macbook & iphone?

    To change the ID:
    For iMessage, go to Settings>Messages>Send & Receive (Receive At in iOS 5), tap the ID sign out, sign back in using the other ID.
    For FaceTime, do the same thing in Settings>Facetime.
    For Purchasing, do this in Settings>iTunes & App Stores (Settings>Store in iOS 5).
    For iCloud, you'll have to delete the account, create a new account with the other ID, and migrate your data to the new account.  Before deleting the account, if you have any photos in photo stream that are not in your camera roll or backed up somewhere else save these to your camera roll or you will lose them.  To do this, open the photo stream album in the thumbnail view, tap Edit, tap all the photos you want to save, tap Share, then tap Save to Camera Roll.  Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account. When prompted about what to do with the iCloud data, be sure to select Keep On iPod.  Next, set up a new iCloud account using a different Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom).  Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.

  • I no longer want to merge my work laptop with my icloud account on other devices.  How can I change the setting for the laptop?

    I accidentally agreed to set up my work laptop icloud account to merge with my other devices and want to keep the work information separate.  How can I change the setting for the PC at work?

    Sign out of iCloud.

  • How do I change the volume for a single midi instrument in GarageBand 10? Every time I move the volume, it moves back!

    How do I change the volume for a single midi instrument in GarageBand 10? Every time I move the volume, it moves back!

    Every time I move the volume, it moves back!
    Check, if you have a volume automation set on the software instrument track.
    If the track volume automation curve is enabled, the volume slider for the track will move with the automation curve.
    Click the automation curves disclosure triangle in the track header and disable the volume automation.

  • How can I change the password for the USER in SAP.

    How can I change the password for the USER in SAP?
    also I want to change the Language and  date Format b/c it's displaying in German language..

    Hi,
    Assuming that User has already his/her user-id and password, and now he/ she wants to change it.
    select the client and provide Log-in credentials. Now, instead of 'ENTER' there is one Tab: 'New Password' (up, left hand). Click it.
    Now, system will ask for new password to change.
    If you are asking from Basis point of view, then T.code: SU01 - User Maintenance.
    Enter User's id and Click Change icon.
    It will lead to Page: Maintain User.
    Here, Select tab: Logon Data
    There is a Sub-Tab: Password.
    Here, key-in change password and SAVE.
    For Language and Date format, contact your Basis-Personnel.
    Best regards,
    Amit

  • HT204053 How do you change apple id for icloud if phone is already set up. Need to give each phone in my account their own apple id for icloud so that we dont receive each others messages but can still all use same id for purchases.

    How do you change apple id for icloud if phone is already set up. Need to give each phone in my account their own apple id for icloud so that we dont receive each others messages but can still all use same id for purchases.

    Settings-icloud-scroll to the bottom, select delete, if you want to keep the content select keep, otherwise it'll remove it. Then once it is done add the account information for the account you want on that phone.  Your apple ID in settings-store will remain the same and each device can still purchase/use content from that account.

  • I have installed Itunes on my laptop. However, the apple store opens in German language. I need it in English. How can i change the language for istore through the itunes?

    I have installed Itunes on my laptop. However, the apple store opens in German language. I need it in English. How can i change the language for istore through the itunes?

    Go to the bottom of the page, click the flag, then select your country.

  • How do I change a font for a specific widget and not my whole site?

    I recently added an affiliate link to my site, and the widget they provided is referencing my CSS text style sheet.
    type="text/javascript"
    The problem is that the text on my site is white, and the search box in the affiliate box is white, so you don't see anything in the text box unless you highlight the text. I changed the font color on the affiliate widget on their site, but it still comes up white.
    I did see a discussion where they suggested changing the font family, which may be a start. I'm wondering though how can I change the style for just this one reference and not my whole site without changing the code I was provided from the affiliate. Perhaps I need to add something to my style.css?
    Thanks!

    You might try inline CSS styles in your widget HTML code but without seeing your page, it's impossible to be more specific.
    Nancy O.

  • Ask your question.How do I change the template for a pages document

    How do I change the template for a pages document?

    Once you've opened it, the opened document is no longer a template. Edit it as you would any other Pages document.
    If you want to use the edited document as a Template, then , after editing, go File > Save as Template, give the new template a name, and click Save.
    The old template will remain available in the location where you found it; the new one will be in the My Templartes sectionof the Templates Chooser.
    Regards,
    Barry

Maybe you are looking for

  • *****Error in Microsoft JDBC drivers for SQL Server 2000****

    hi guys, I am getting the following error in my application. The error seems to have thrown by Microsoft JDBC drivers for SQL Server 2000 The application tries to execute the the following query when the error is thorwn: SELECT getDate(); // getDate

  • Integrated planning configuration guide

    Hi, I would appreciate if anybody could send me a configuration guide witha general scenario for integrated planning.I tried the best practice side ,but the sales planning/cost center planning(planning scenarios ) are for bps regards savi

  • When combining multiple PDF's, the field properties change

    When combining multiple PDF's, the field properties for the Font and/or the "Scroll long text" checkbox change settings. What is causing this to happen?

  • If table empty hide subform

    Hi, I need to suppress subform when table displayed in this subform is empty. if ($.my_table is empty )  " How to do this then   $.presence = "hidden" else   $.presence = "visible" endif Thanks in advance!!! Regards, Amel

  • Advantages and Disadvantages of Soap

    Advantages and Disadvantages of Soap Hi Firends,               Could you please tell me the Advantages and Disadvantages of using Soap adapter, i need them urgently. Note: High reward points will be given for each answer