Persisting raw file data using XMLEncoder

Guys
I am trying to persist the 'Buffer' object which has a 'fileName' property. I dont want my object to be dependent on the machine containing the file 'fileName'. So I want to persist the data for 'fileName' file when XMLEncoder is used to persist 'Buffer' object. So I extended DefaultPersistenceDelegate. However I get OutOfMemoryError inside the initialize method. It seems that even though I am setting byTmp array to null after out.writeStatement the array byTmp is not garbage collected. Apparently the encoder is holding a reference to the byTmp array. Also note that the file is huge and cannot be loaded into a single byte array completely.
Can anyone think of a work around for this problem?
Thanks
Rahul
public class Buffer() {
private String fileName;
//These methods will be invoked by the XMLDecoder
public void startWritingBytes(String fileName) {
//open tmp file for writing
public void writeBytes(byte[] b) {
//write to tmp file
public void doneWritingBytes() {
//close file.
//uncompress tmp file and write to file 'fileName'
public static class BufferPersistenceDelegate extends
DefaultPersistenceDelegate {
public UnlimitedBufferPersistenceDelegate() {
super();
protected void initialize(Class<? > type, Object oldInstance, Object
newInstance, Encoder out) {
// Note, the "fileName" property will be set here.
super.initialize(type, oldInstance, newInstance, out);
try {
//First compress the file.
//Persist compressed data
try {
java.beans.Statement sm = null;
sm = new java.beans.Statement(oldInstance, "startWritingBytes",
new Object[] {fileName});
out.writeStatement(sm);
byte[] byTmp = null;
byte b = 0;
//Get OutOfMemoryError here
while ( (bytesRead = fin.read(buffer)) > 0) {
byTmp = new byte[bytesRead];
System.arraycopy(buffer, 0, byTmp, 0, bytesRead);
sm = new java.beans.Statement(oldInstance, "writeBytes",
new Object[] {byTmp});
out.writeStatement(sm);
byTmp = null;
sm = new java.beans.Statement(oldInstance, "doneWritingBytes",
null);
out.writeStatement(sm);
finally {
//close compressed file
//delete compressed file
catch (Throwable ex) {       
}

Sorry guys, I think I had the answer to the question in the question itself!!
I was not freeing the statement object. The problem disappears when I set sm to null.

Similar Messages

  • How to encrypt excel file data using triple DES algorithm in oracle

    Hi,
    I would like to know the process or script to encrypt/decrypt the excel file data using triple DES algorithm in oracle.

    I'm not quite sure your requirement.... do you mean when uploading files to be stored in the database ?

  • If xmp creation date precedes raw file date Bridge/ACR does not recognize

    I decided to start a new thread with this revelation from a prior discussion, because of its importance.
    I have several iPad apps that apply metadata to raw images captured in the field using the camera connection kit.  These apps have various export mechanisms, with a typical capability to bundle up raw images from the Photos app space with xmp files from the metadata editor app's space, and deliver them via ftp or however.  I have seen failures where the creation date of the image file was made equal to the creation date of the xmp, and subsequent to export Bridge would not recognize the xmp file as valid edits to the raw file, even though they both had the same file name ahead of the extension.  Up to now I never understood the cause of the failure.  Opening the xmp file in a text editor and saving it out with a later creation date "fixed" the problem.
    Adobe either needs to change this behavior (IMO the right solution, forget about checking creation dates) or at least publish the dependency.  I believe there are a lot of programmers out there that had no idea that the creation date could invalidate the coupling between the raw file and the xmp file.
    Richard Southworth

    Ok, made some tests.
    First: there is nothing interesting in /sys/class/drm. Only one file called version... which, as you might guess, contains the version info for DRM.
    Secondly: tested this Phantom Output thing. Used LVDS-1, LVDS-0, LVDS... nothing.
    I even tried to add i915 and intel_agp modules to the initramfs... nothing changed.
    However, I looked a bit more into dmesg and found another interesting thing:
    [ 2.038447] Linux agpgart interface v0.103
    [ 2.041261] input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:01/input/input8
    [ 2.048750] ACPI: AC Adapter [ACAD] (on-line)
    [ 2.060820] agpgart-intel 0000:00:00.0: Intel 945GM Chipset
    [ 2.060849] agpgart-intel 0000:00:00.0: detected gtt size: 0K total, 0K mappable
    [ 2.060858] agpgart-intel 0000:00:00.0: Intel (null) Chipset
    [ 2.060867] agpgart-intel 0000:00:00.0: can't determine aperture size
    [ 2.060933] agpgart-intel 0000:00:00.0: agp_backend_initialize() failed
    [ 2.060942] agpgart-intel: probe of 0000:00:00.0 failed with error -22
    So it seems there is a problem with the AGP module not correctly detecting the card in the first place
    Edit: also tested it with the internal screen connected, still the same problem.
    Last edited by kjans (2014-12-03 21:33:09)

  • Tuxedo Log file data ( using -r switch to log services).

    Hi,
    I'm trying to convert the SDATE and EDATE parameters in the standard errors file
    into dates.
    Does anyone out there have any ideas on how to convert the numbers in these columns
    into a date using SQL. This would enable me to store data and perform data analysis
    in an SQL server environment rather than MS Access...
    Any suggestions would be appreciated...
    Cheers,
    Steve.

    I've attached a java program we use to read the SDATE and RDATE values and convert
    them into java.util.Date objects, and generate a .csv file for use in excel. You
    should be able to modify this to put dates into a database.
    Cheers,
    Anthony
    \"Stephen Loughborough" <[email protected]> wrote:
    >
    Hi,
    I'm trying to convert the SDATE and EDATE parameters in the standard errors
    file
    into dates.
    Does anyone out there have any ideas on how to convert the numbers in these
    columns
    into a date using SQL. This would enable me to store data and perform data
    analysis
    in an SQL server environment rather than MS Access...
    Any suggestions would be appreciated...
    Cheers,
    Steve.[svcrpt.tar.gz]

  • I can't transfer raw files by using sd card

    hi
    i can't transfer raw files or large jpg files by using sd card to my ipad retina

    There is size limit of 19 megapixel for photos in iOS
    See http://www.dpreview.com/articles/1171169624/apple-iphoto-ios-app-review
    Allan

  • Photoshop Elements 10  plug-in required for the new Camera RAW file format used by the new Canon 6D

    I have a new Canon 6D and prefer to use Camera RAW.  This new file format is not compatable with Elements 10.  A new plug-in maybe is required.
    Can anyone help?
    Regards,
    gordo422209

    I can't find Canon 6D in the list of supported cameras for even ACR 7.3. I would thus suggest you converting your raw files to dng using dng convertor tool and then open the dng files in ACR.
    Download and install the free Adobe DNG converter to convert your raw files to the Adobe universal Raw format and the files will open in all versions of PSE (keep your original raw files as backups and for use in the manufacturers software)
    Windows download click here DNG Converter 7.2
    Mac download click here DNG Converter 7.2
    You can convert a whole folder of raw images in one click. See this quick video tutorial:
    You Tube click here for DNG Converter tutorial
    Source: http://forums.adobe.com/message/4893342#4893342 curtsey of 99jon

  • Canon Raw File Transfer using Canon 7D / Lion / Aperture 3.2

    Is anyone finding issues in unloading raw files with a Canon camera and the latest software?  I have been doing this successfully for some time using Aperture 3.1 with Snow Leopard.  I use a 13" MBP with 8GB of memory and a huge hard drive.  I upgraded to Lion and Aperture 3.2 and find that my Canon 7D doesn't transfer all of my pictures off of the camera.  The camera is connected via the USB cable that plugs directly into the camera.  I have found a workaround by re-importing off the camera and selecting the option to not download previously imported pictures.  Depending on the number of photos, I may have to do it up to 10 times to get all the pictures.  I have the latest Canon 7D firmware.  I'm able to successfully do this using Canon Utilities running on Lion.  Ironically, this same issue happens when I import into Aperture from the camera or from the hard drive.  After importing onto my hard drive using Canon software and getting all the pictures in one try, I then tried to import from the hard drive into Aperture but faced the same issue.  I think I have this isolated to an Aperture 3.2 issue with Lion and Canon 7D raw images.  I also thought that it might be due to lack of battery life on the camera or with large photo shoots.  Nope.  It happens as well with a small number of photos and a healthy battery.
      Is anyone else running into this issue?  Thanks.

    The Digital Camera RAW Compatibility Update 3.9:
    http://support.apple.com/kb/DL1473
    supports Powershot S100, try to download and install this update.
    Regards
    Léonie

  • Lion OS X 10.7.3 RAW FILE Support using preview

    Is Lion supporting the new RAW file platform or not?
    I've upgrade to Lion and also upgraded Adobe, Canon 5D Mark III, All my software too. My frustration lies within the RAW being previewed in cover flow before actually loading them to my MAC.
    It looks like Adobe has been trying with a conversion to PNG, wha't Apple Support's Progress if any?
    I need an update! Please!

    pixcasey wrote:
    It looks like Adobe has been trying with a conversion to PNG, wha't Apple Support's Progress if any?
    I need an update! Please!
    http://www.apple.com/feedback/macosx.html
    Pete

  • Loading FLat file data using FDMEE having 1 to many mapping

    Hi All,
    I need to load a data from Flat file to hyperion planning applcation using FDMEE having one to many mapping
    For e.g Data file has 2 records
    Acc Actual Version1 Scene1 1000
    Acc Actual Version1 Scene2 2000
    now target application has 5 dimension and data need to be load as
    acc Actual Version1 entity1 Prod2 1000
    Acc Actual Version1 Entity2 Prod2 2000
    Please suggest
    Regards
    Anubhav

    From your exmple I don't see the one too many mapping requirement. You have one source data line that maps to a single target intersection. Where is the one to many mapping requirement in your example?

  • InfoPath 2013 Read SharePoint 2013 File data using Rest API Access Denied Exception

    I am designing a set of Forms and they need to query Data from among themselves.
    The whole set up described below works in the Form Filler/Preview
    I'll call them Form A and Form B
    Form A has a repeating table that needs to be displayed in Form B
    The user selects from a DropDown in Form B an Instance of Form A, using the selected I REST connection is executed so the Form A xml is available inside Form B. The connection is set up as follows:
    _api/web/lists/ListName/Items(SelectedId)/File/$value
    I publish the form as site content type, add it to a library, after triggering the REST connection I get an error. ULS gives me a 401 Access denied for NT Authority\IUSR (as it should since I don't have anonymous access enabled [nor has that solved the issue])
    That's my issue. All requests on the REST api are being executed as anonymous and not as a user that should have permission.
    Things I've tried:
    1. The connection uses a UDCX file, the conenction is set to use the form server proxy. The proxy has been enabled for the Form Services, web application and user connection. I've tried it with a configured App ID or an Explicit account
    2. I've tried enabling Anonymous access, but have had no success
    3. I've gotten the Query to work on Post Backs by adding the following to the web.config:
    <location path="_layouts/15/Postback.FormServer.aspx">
        <system.web>
          <identity impersonate="false" userName="bhs\sp_admin_dev" password="M1crosoft" />
        </system.web>
      </location>
    And while it solves the issue for Postback requests and I could add FormServer.aspx to the list I can't use this solution for a production environment, nor can I predict other issues that could be caused by the change.
    I haven't been able to find any references to this error so I wonder if I'm doing something wrong or if there's another way to do this.
    If I've been unclear on anything, let me know and I'll try to clear it up.

    Hi Choggo,
    thank you for your information,
    regarding this issue, it seems we may need to debug and trace your network, to check if should the parameter that is used for the REST connection is correct.
    i checked with infopath team members regarding this issue, they suggest that you try with impersonation, so that the user that login is not anonymous, but the user that you already been assign with.
    the last suggestions from our sharepoint team members that we are able to do, as we have limited tools on this forum support, that you need to check the file udcx itself, do the permission to access that file is correct, so for example, if the file is not
    having the permission to be read/access then the system may result with anonymous account, so that we may have the result that the data that should be passed are able to accessed.
    if should this suggestion not applicable to your environment, our sharepoint team members suggest that you to open an incident ticket, so that we can check and re-confirm more deep for you if should this is an undocumented feature or not.  the action
    plans is to have a remote session, then we can trace the data passing process, that is already correct, so that the IUSR is not appear when it authenticate.
    http://support.microsoft.com/contactus/?wa=wsignin1.0
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Error while reading raw file created in previous task using raw file destination

    I am reading a flat file and creating an raw file using raw file destination.  path of the raw file is in a variable.  now I am reading the raw file using the rawfile source component. I am able to execute if the .raw file is available.  But
    when we deploy into the production the .raw will be created runtime, so the package is getting failed while evualting the variable which hold the path of the variable.  since the .raw is not available i am not able to proceed further. it's in ssis 2008
    r2
    Error at Load Data [Raw File Source [401]]: File "c:\test123.raw" cannot be opened for reading. Error may occur when there are no privileges or the file is not found. Exact cause is reported in previous error message.
    Error at Load Data [SSIS.Pipeline]: component "Raw File Source" (401) failed validation and returned error code 0x80004005.
    Error at Load Data [SSIS.Pipeline]: One or more component failed validation.
    Error at Load Data : There were errors during task validation.

    I am also using a raw file destination using a variable.
    I have set DelayValidation = true on both the DataFlow task and even the Sequence Container.
    I get the same error when I run the entire ssis package, however
    when I run the individual container or individual task it runs without an error.
    Also, something interesting is the error is not the same path as the variable name.
    Warning: The system cannot find the file specified.
    Error: File "C:\Users\MyName\AppData\Local\Temp\GUIDNumber\\RawFileName" cannot be opened for reading. Error may occur when there are no privileges or the file is not found. Exact cause is reported in previous error message.
    The variable is "C:\Temp\ProjectName\RawFileName"
    I have other RawFile sources in this same project, but only this one file is giving me grief.
    Any other suggestions?  Is this a bug?
    Have you set an expression for connection string property of raw file? Is it based on variable/expression or configuration? If yes, check the value of variable/ expression or configuraton item at runtime by putting a breakpoint in the pre execute event of task
    and make sure path value its getting is correct. It may be that path is getting a different value at runtime due to expression/configuration set for it.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Nikon D7000 raw files will not open using PSE 11

    I am unable to open Nikon D7000 raw files(NEF) using PSE 11
    When I use the program's "Update "function I just get an error message.
    Can anyone advise?
    Thanks

    This particular forum (sharing and storage) was created to help those transitioning from Photoshop.com to Adobe Revel. I am moving your post to the proper forum so that it can get proper attention.
    We also have many other forums relating to other Adobe products at: http://forums.adobe.com.

  • Using USMT to manually backup to USBHD and Keeping File Dates

    I am currently using USMT as a method of backing up user data in a corporate environment before a migration to windows 7.  in out process we are just using the tool to perform the backup portion and calling USMT from a batch file manually.  We
    are not using the loadstate function as we like to keep the new user profiles clean and avoid loading setting that are not required, and in our batch file i have set the "/nocompress" option so scanstate.exe creates a folder structure inthe backup
    store folder that gets created on our External usbhd's.  This process is working well for us as we can quickly see what data was backed up and only copy back the data needed.  The only issue is the files dates on all data is set to the time and date
    that scanstate.exe is run and we would like to have the dates saved with the files as using have requested this. (even a manual copy and paste will keep the date).  I have looked into the "includeAttributes" function but when i attempt to use
    this any data that would have been backed up before making the change is now skipped completely.  The documentation on the use of this function i find minimal and i also have not found much help searching message boards.  I am using MigDocs.xml,
    MigApp.xml, and a custom.xml that has some custom includes and excludes.  If someone can give me some help or point me to somewhere i can get better info with saving file dates using USMT that would be appreciated.
    thanks.

    Thank you for your reply, but I have read that thread many times as it seems to be the only one I can find that references the "includeAttributes" function. I have attempted to use the feature as described but can not get it to function. Any file
    <pattern type> listed in the <objectset> </objectset> area are skipped entirely when using it.  If I set the <includeAttributes attributes="Timefields"> back to the standard <include> the data will backup again
    but with date set to time scanstate.exe was run. I can include my custom.xml for reference.  I'm hopeing that someone can post a working example that I can reference to figure out what I'm doing wrong. 
    Thanks.
    <?xml version="1.0" encoding="UTF-8"?>
    <migration urlid="test">
      <library prefix="MigSysHelper">MigSys.dll</library>
        <_locDefinition>
            <_locDefault _loc="locNone"/>
            <_locTag _loc="locData">displayName</_locTag>
        </_locDefinition>
      <component type="Documents" context="User">
        <displayName>custom includes and excludes user context</displayName>
        <role role="Settings">
            <rules context="User">
                <include>
                    <objectSet>
                        <!--<pattern type="Registry">HKCU\Printers\* [*]</pattern>-->
                        <pattern type="Registry">HKCU\Network\* [*]</pattern>
                    </objectSet>
                </include>
      </rules>
     </role>
     <role role="Data">
      <rules content="User">
       <include>
           <objectSet>
         <pattern type="File"> %CSIDL_STARTMENU%\* [*] </pattern>
            </objectSet>
       </include>
      </rules>
     </role>
      </component>
      <component type="Documents" context="System">
      <displayName>custom includes and excludes system context</displayName>
       <role role="Data">
      <rules context="System">
       <include> !-- <includeAttributes attributes="TimeFields"> This is where I would make the change --
        <objectSet>
         <pattern type="File">%CSIDL_COMMON_STARTMENU%\* [*] </pattern>
         <pattern type="File">%ProgramFiles32bit%\WordPerfect Office X3\Languages\EN\Macros\* [*]</pattern>
         <pattern type="File">%ProgramFiles32bit%\WordPerfect Office 12\Languages\EN\Macros\* [*]</pattern>
         <pattern type="File">%ProgramFiles32bit%\WordPerfect Office 11\Languages\EN\Macros\* [*]</pattern>
         <pattern type="File">%ProgramFiles32bit%\WordPerfect Office X3\Languages\EN\Template\* [*]</pattern>
         <pattern type="File">%ProgramFiles32bit%\WordPerfect Office 12\Languages\EN\Template\* [*]</pattern>
         <pattern type="File">%ProgramFiles32bit%\WordPerfect Office 11\Languages\EN\Template\* [*]</pattern>
         <pattern type="File">%WINDIR%\Fonts\* [*]</pattern>
        </objectSet>
       </include>  !--</includeAttributes> --
       <unconditionalExclude>
                    <objectSet>
         <pattern type="File">c:\i386\* [*]</pattern>
                        <pattern type="File">c:\NDPS\* [*]</pattern>
         <pattern type="File">c:\Novell Client *\* [*]</pattern>
         <pattern type="File">c:\MININT\* [*]</pattern>
         <pattern type="File">c:\SwSetup\* [*]</pattern>
         <pattern type="File">c:\lexmark\* [*]</pattern>
         <pattern type="File">c:\Quarantine\* [*]</pattern>
         <pattern type="File">c:\Xerox\* [*]</pattern>
         <pattern type="File">c:\Compaq\* [*]</pattern>
         <pattern type="File">c:\Intel\* [*]</pattern>
         <pattern type="File">c:\Windows\Media\* [*]</pattern>
         <pattern type="File">c:\~data\* [*]</pattern>
         <pattern type="File">A:\*[*]</pattern>
         <pattern type="File">B:\*[*]</pattern>
         <pattern type="File">D:\*[*]</pattern>
         <pattern type="File">E:\*[*]</pattern>
         <pattern type="File">F:\*[*]</pattern>
         <pattern type="File">G:\*[*]</pattern>
         <pattern type="File">H:\*[*]</pattern>
         <pattern type="File">I:\*[*]</pattern>
         <pattern type="File">J:\*[*]</pattern>
         <pattern type="File">K:\*[*]</pattern>
         <pattern type="File">L:\*[*]</pattern>
         <pattern type="File">M:\*[*]</pattern>
         <pattern type="File">N:\*[*]</pattern>
         <pattern type="File">O:\*[*]</pattern>
         <pattern type="File">P:\*[*]</pattern>
         <pattern type="File">Q:\*[*]</pattern>
         <pattern type="File">R:\*[*]</pattern>
         <pattern type="File">S:\*[*]</pattern>
         <pattern type="File">T:\*[*]</pattern>
         <pattern type="File">U:\*[*]</pattern>
         <pattern type="File">V:\*[*]</pattern>
         <pattern type="File">W:\*[*]</pattern>
         <pattern type="File">X:\*[*]</pattern>
         <pattern type="File">Y:\*[*]</pattern>
         <pattern type="File">Z:\*[*]</pattern>
        </objectSet>
       </unconditionalExclude>
      </rules>
        </role>
      </component>
    </migration>

  • Nikon D300 Raw files for 64bit windows vista machine not appearing in Photoshop CS3 raw

    I purchased a new 64bit computer running Vista. I have installed Photoshop CS3 including the latest updates and the 4.6 (Camera Raw.8bi) raw update file. I included the raw file in C:\Program Files (x86)\Common Files\Adobe\Plug-Ins\CS3\File Formats. I have purged cache in Bridge and I still cannot view the raw files in Bridge. I only see a gray square with a Blue NEF. I can open the files in Photoshop however. What can I do to see the files in Bridge?

    Nikon encrypts RAW file data
    ByMichael R. Tomkins, The Imaging Resource
    (Wednesday, April 20, 2005 - 02:16 EDT)
    A news item posted on Sunday by PhotoshopNews.com reports on comments from Thomas Knoll, one of the original authors of Adobe Photoshop, relating to the RAW file format used in Nikon's D2X and D2Hs digital SLRs.
    <IFRAME src="http://208.43.255.194/cgi-bin/advertpro/banners.fpl?region=112&keyword=NULL" height="250" width="300" marginwidth="0" marginheight="0" vspace="0" hspace="0" frameborder="0" align="middle" scrolling="no"> <A href="http://208.43.255.194/cgi-bin/advertpro/blink.fpl?region=112&slot=1" target="_blank"> <IMG src="http://208.43.255.194/cgi-bin/advertpro/bimg.fpl?region=112&slot=1&keyword=NULL" border="0" width="300" height="250" alt="Click Here!"> </A> </IFRAME>
    Thomas Knoll is currently the chief engineer for Adobe Camera Raw, the company's RAW file conversion software. The PhotoshopNews item references a forum thread started by Mr. Knoll in Adobe's official user forums, where he reveals that .NEF RAW files from the latest Nikon digital SLRs encrypt data relating to the white balance setting the photo was shot with.
    RAW file formats vary significantly between digital camera manufacturers (and often, between different models in a manufacturer's lineup), and the manufacturers generally won't publicly disclose the specification for the RAW file format(s) they use. Some will offer plugins or software development kits (SDKs) that enable their RAW files to be opened in third-party applications, but these generally have some limitations attached to their use.
    In addition, the companies generally offer RAW file conversion software of their own, either as part of their camera bundles or as an added-cost option. Nikon offer their pro SLRs with PictureProject software that includes limited control over the RAW file conversion process, and then offer the more feature-rich Nikon Capture conversion software for an added cost. In a recent publication on the company's Nikon Pro website, it suggested that it feels Nikon Capture is better-suited to photographers, while Adobe's Photoshop is more suited to graphic artists. Still, different photographers have different workflow preferences, and for this reason third parties such as Adobe often reverse engineer the RAW file formats, allowing them to be opened in their own software - sometimes with even better image quality than the original manufacturer's software.
    In a way, it is understandable that companies would want to encrypt RAW file data from their products - it allows them to pick and choose which competitors are able to open RAW files shot with their products, and allows them to generate new revenue streams from the sale of their own RAW file conversion software (or, if they choose, the sale of licenses allowing competitor programs to access their RAW file data). Nikon is not the first company we're aware of to encrypt data in RAW files; Sony's Cyber-shot DSC-F828 RAW files contain encrypted data. In that instance, however, Sony granted permission for Adobe to decrypt the data in their software. At the current time, Mr. Knoll states that while Adobe has signed a non-disclosure agreement that grants them access to use Nikon's SDK, they have not received any response to requests from Adobe that the company be allowed to decrypt the white balance data, which would allow closer integration with their software than is possible with the SDK.
    The fact that Nikon has chosen to encrypt a portion of the RAW file data would not be particularly problematic for third parties to overcome, were it not for certain laws enacted around the world in recent years. One such law is the United States' "Digital Millennium Copyright Act", often referred to as the DMCA, which makes it illegal to produce technology that can circumvent measures designed to protect copyright. One could argue that Nikon's encryption of the white balance data is just such a measure - which would make it an offense for a third party without permission to make software that could decrypt the original white balance setting used by the camera when the photo was shot. One could equally argue, however, that the copyright over the RAW file belongs to the photographer who captured the image - and hence the choice over what is done with that copyrighted work is entirely up to the photographer.
    Unfortunately, there's no clear-cut answer, and short of a company or programmer finding themselves in court for having cracked the encryption, there isn't likely to be such an answer any time soon. This presents a problem for third parties attempting to make their own RAW file conversion routines for the D2X and D2Hs, as if they don't want to risk opening themselves up to legal action, they aren't able to determine the original white balance setting. Hence, they must either request the white balance setting from the user as the RAW file is converted, or attempt to determine an appropriate white balance setting automatically (which would not necessarily be the same as that determined by the camera itself).
    Nikon hasn't communicated their reasons for encrypting the white balance information in their latest NEF formats, but we have to say it doesn't sound like a very good idea. While Nikon Capture does indeed offer excellent capabilities for people to manipulate images saved in NEF formats, many photographers and organizations have already established workflows based on Adobe's RAW plugin for Photoshop and other image-processing tools. The biggest consequence of this move on Nikon's part seems likely to be to push more photographers onto other camera platforms. It's hard to imagine that increased sales of Nikon Capture will make up the revenue lost from camera and lens sales going forward.

  • FAQ: Will Lightroom work with my camera, or Why won't my raw files open?

    What is a raw file?
      A raw file is the unprocessed data that was captured by your camera sensor when you took your picture. The only settings on your camera that apply to this file are aperture, shutter speed, and ISO. This means that any effects you may have applied to the file, such as white balance or black and white, may not appear in Lightroom. Your camera will create a JPEG copy of your raw file with all current settings applied and save that within the raw file for use as a thumbnail by most applications. When you first view a raw file in Lightroom, you will see this thumbnail, then Lightroom will read the raw data and create its own thumbnail, which may have a different appearance.
    How does Lightroom work with raw camera files?
      Lightroom interprets the raw data and makes image information out of it. But every camera has a unique sensor and thus has a unique form of raw file. Even though camera manufactures may use the same file extension each time (e.g. Nikon raw files are always .NEF), each camera model has a different way of storing information. Because of this, we must continually update Lightroom for new cameras. As we add new cameras to the list (over 300 now) we update our published list of supported cameras.
    Will the raw files from my camera work with Lightroom?
      To determine whether your camera is supported by Lightroom, check this list:
    Supported cameras
      Go to Help > Updates to install the latest release. You can also manually download and install Lightroom updates:
    Macintosh
    Windows
    What if I own a previous version of Lightroom?
    Supposing you have a camera that came out after the release of a newer version of Lightroom, so that your version of Elements is no longer recieving updates, you have two basic options:
    Purchase the latest version of Lightroom that supports your camera.
    Use the latest version of the free DNG Converter (for Macintosh or Windows)
    You can convert your files to the universaly compatible DNG format (the files will work with any version of the Lightroom). See In depth : Digital Negative (DNG) for more information.
      For more assistance on DNG:
    Adobe TV - The Advantages of the DNG File Format
    Adobe TV - On Using DNG in Lightroom
    Adobe TV - DNG Enhancements in Lightroom 4
    Can I perform tethered capture from my camera to Lightroom?
      Lightroom has the ability to automatically import images from your camera, as you shoot, life. To learn more about setting up and useing tethered capture, please see Import photos from a tethered camera. This list shows all the cameras that Lightroom supports for tethered shoooting:
    Tethered camera support | Lightroom 4, 3
      Use this document if you run into trouble when performing tethered shooting:
    Troubleshoot tethered capture | Lightroom 4, 3
      For more assistance on Tethered Shooting:
    Adobe TV - Import photos from a tethered camera
    Will Lightroom help me automatically compensate for the image distortion caused by my camera lens?
      The Develop module of Lightroom includes Lens Correction which can read what lens was used from the metadata. With this information it can pick a profile that will reduce distortion caused by the curvature of the lens. For a list of which lenses are supported by which camera bodies, see this list:
    Lens profile support | Lightroom 4, 3
      If your lens is not currently supported, you have a few options:
    Apply the lens correction manually
    Use the Adobe Lens Profile Downloader (Download: Mac, Win) to see if someone else has created a profile your camera and lens
    Use the Adobe Lens Profile Creator (Download: Mac, Win) to make your own profile for your camera and lens.
      For more assistance on Lens Profile Corrections:
    Adobe TV - Lens Correction & Perspective Correction
    Adobe TV - Create Stunning Images
    Adobe TV - Correcting Perspective
    Adobe TV - Apply Lens Corrections
    Julieanne Kost's Blog - Lens Correction Profiles
    Additional resources
       For more information about Adobe Camera Raw, please check these links:
    Troubleshoot Camera Raw
    Why doesn’t my version of Photoshop or Lightroom support my camera?
    In depth: Camera Raw
    Lightroom Jourrnal (developers blog) about Camera Raw releases
    Julieanne Kost's Camera Raw video tutorials
    Adobe Camera Raw turns 10

    Yes, junky thumb drives pour like rain.   Verify same with another or a good thumb drive.
    Whats the format of the USB stick?
    Use Sandisk or other reliable drives.

Maybe you are looking for