How to encypt a .txt file and how to decrypt a same .txt file when i need

My requirement is i want to encrypt a .txt file and
keep it in some folder. In that file we put database connection
information. when ever we need that file we have to access it and decrypt
it. with that decrypted values we have make connection with database.
i am sending a code in which i wrote both encyption and decrytion in same file, but i want to do it separately.
Please help me regarding this.
package com.businessobjects;
import java.io.*;
import java.security.*;
import javax.crypto.*;
public class EncryptDecrypt
     public static void EncodeIt()
          try
          // generate Cipher objects for encoding and decoding
          Cipher itsocipher1 = Cipher.getInstance("DES");
          Cipher itsocipher2 = Cipher.getInstance("DES");
          // generate a KeyGenerator object
          KeyGenerator KG = KeyGenerator.getInstance("DES");
          System.out.println("Using algorithm " + KG.getAlgorithm());
          // generate a DES key
          Key mykey = KG.generateKey();
          // initialize the Cipher objects
          System.out.println("Initializing ciphers...");
          itsocipher1.init(Cipher.ENCRYPT_MODE, mykey);
          itsocipher2.init(Cipher.DECRYPT_MODE, mykey);
          // creating the encrypting cipher stream
          //System.out.println("Creating the encrypting cipher stream...");
          /*FileInputStream fis = new FileInputStream("Original.txt");
FileOutputStream fos = new FileOutputStream("Encypt.txt");
          CipherInputStream cis1 = new CipherInputStream(fis, itsocipher1);
          // creating the decrypting cipher stream
          //System.out.println("Creating the decrypting cipher stream...");
          byte[] b1 = new byte[8];
int i1 = cis1.read(b1);
          while (i1 != -1)
               fos.write(b1, 0, i1);
               i1 = cis1.read(b1);
fis.close();
fos.close();*/
// writing the decrypted data to output file
FileInputStream fis1 = new FileInputStream("Encypt.txt");
FileOutputStream fos1 = new FileOutputStream(Decypt.txt");
CipherInputStream cis2 = new CipherInputStream(fis1, itsocipher2);
          byte[] b2 = new byte[8];
          int i2 = cis2.read(b2);
          while (i2 != -1)
               fos1.write(b2, 0, i2);
               i2 = cis2.read(b2);
fis1.close();
          fos1.close();
//cis1.close();
          cis2.close();
          catch (Exception e)
          System.out.println("Caught exception: " + e);
With regards
Pavankumar.

here is the solution you wanted it
uses password based encryption
but your requirements are for very badly
designed code
This is the encryption part
it converts the inputfile original.txt
into the outputfile encrypt.txt which
contains the original encrypted
import java.io.FileInputStream;
import java.io.FileOutputStream;
import javax.crypto.Cipher;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.spec.PBEParameterSpec;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
public class PWBEncryption {
    // Salt
    static byte[] salt = {
        (byte)0xc7, (byte)0x73, (byte)0x21, (byte)0x8c,
        (byte)0x7e, (byte)0xc8, (byte)0xee, (byte)0x99
    // Iteration count
    static int count = 20;
    public PWBEncryption() {
    // params:
    // password   -> the pasword used to create the key
    // inputfile  -> the file containing the stuff to be encrypted
    // i.e. original.txt
    // outputfile -> the file that will contain the encrypted stuff
    // i.e. encrypt.txt
    public static boolean doIt(char[] password,String inputfile,String outputfile){
        try{
            // Create PBE parameter set
            PBEParameterSpec pbeParamSpec = new PBEParameterSpec(salt, count);
            PBEKeySpec pbeKeySpec = new PBEKeySpec(password);
            // create secretkey
            SecretKeyFactory keyFac = SecretKeyFactory.getInstance("PBEWithMD5AndDES");
            SecretKey pbeKey = keyFac.generateSecret(pbeKeySpec);
            // create cipher
            Cipher pbeCipher = Cipher.getInstance("PBEWithMD5AndDES");
            pbeCipher.init(Cipher.ENCRYPT_MODE, pbeKey, pbeParamSpec);
            // read input
            FileInputStream fis = new FileInputStream(inputfile);
            byte[] input = new byte[fis.available()];
            fis.read(input);
            // encrypt
            byte[] output = pbeCipher.doFinal(input);
            // write encrypted output
            FileOutputStream fos = new FileOutputStream(outputfile);
            fos.write(output);
            return true;
        catch(Exception e){
            System.out.println(e.toString());
            return false;
}This is the decrypt part
import java.io.FileInputStream;
import java.io.FileOutputStream;
import javax.crypto.Cipher;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.spec.PBEParameterSpec;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
public class PWBDecryption {
    // Salt
    static byte[] salt = {
        (byte)0xc7, (byte)0x73, (byte)0x21, (byte)0x8c,
        (byte)0x7e, (byte)0xc8, (byte)0xee, (byte)0x99
    // Iteration count
    static int count = 20;
    public PWBDecryption() {
    // params:
    // password   -> the pasword used to create the key
    // inputfile  -> the file containing the decrypted data
    // i.e. encrypt.txt
    // outputfile -> the file that will contain the decrypted data
    // i.e. decrypt.txt
    public static boolean doIt(char[] password,String inputfile,String outputfile){
        try{
            // Create PBE parameter set
            PBEParameterSpec pbeParamSpec = new PBEParameterSpec(salt, count);
            PBEKeySpec pbeKeySpec = new PBEKeySpec(password);
            // create secretkey
            SecretKeyFactory keyFac = SecretKeyFactory.getInstance("PBEWithMD5AndDES");
            SecretKey pbeKey = keyFac.generateSecret(pbeKeySpec);
            // create cipher
            Cipher pbeCipher = Cipher.getInstance("PBEWithMD5AndDES");
            pbeCipher.init(Cipher.DECRYPT_MODE, pbeKey, pbeParamSpec);
            // read input
            FileInputStream fis = new FileInputStream(inputfile);
            byte[] input = new byte[fis.available()];
            fis.read(input);
            // encrypt
            byte[] output = pbeCipher.doFinal(input);
            // write encrypted output
            FileOutputStream fos = new FileOutputStream(outputfile);
            fos.write(output);
            return true;
        catch(Exception e){
            return false;
}runner
public class RunRun {
    public RunRun() {
    public static void main(String args[]){
        char password[] = {'q','w','e','r','t','y'};       
        boolean enc = PWBEncryption.doIt(password,"C:\\original.txt","c:\\encrypt.txt");
        System.out.println("Encryption status == "+enc);
        boolean dec = PWBDecryption.doIt(password,"c:\\encrypt.txt","c:\\decrypt.txt");
        System.out.println("Decryption status == "+dec);
}

Similar Messages

  • I am using a PC with window 7 and adobe photoshop 12. I have followed Photoshop Elements Help and I still have the same problem. When I try to backup Photoshop 12 it has stop on7% when calculating Total Media size. What can I do?

    I am using a PC with window 7 and adobe photoshop 12. I have followed Photoshop Elements Help and I still have the same problem. When I try to backup Photoshop 12 it has stop on7% when calculating Total Media size. What can I do?

    Hi Prabhuram and falez,
    This issue appears where there are any inconsistencies in your catalog (generally for video files). This issue may be due to offline files, missing files, video scenes. The recommendation here would be to fix these inconsistencies and try again. If that doesn't solve the issue, please follow steps mentioned in email by me.
    ~Surendra

  • My music and video i save on my ext, drive when i need i drag folder i want to itunes and sync, how come now it's save on my pc and took alots space? how can do like beore iphone 4 did not do like that

    my video and music i save on my ext drive when i want to sync to my phone or ipad i drag folder into play list itunes and sync, before it did not save on my pc but now it save on my pc drive and took alots space, how can i do all my folder music and video did not save on my pc and into my ext,drive? please help me
    Thanks
    MPHU

    Hi MJPHU,
    I understand that when you want to move music or video from your external hard drive to sync with iTunes, that media is staying on your computer and taking up hard drive space. In this situation I would recommend changeing the location of where iTunes looks for the media. This way you can sync anything you want without dragging files to your computer hard drive. If the external drive with the media is connected, iTunes will sync directly from there. The following article explains how to change the location of where iTunes looks for your media.
    iTunes for Windows: Moving your iTunes Media folder
    http://support.apple.com/kb/ht1364
    Thanks for reaching out,
    -Joe

  • How to share the same Database Connection when using several Task Flows ?

    Hi All,
    I’m using JDev 11.1.1.3.0.
    I’m developing ADF Fusion Applications (ABC BC, ADF Faces…)
    These applications are deployed on a Weblogic server.
    Each application has only one Application Module.
    All Application Modules have the same connection type defined: JDBC DataSource : jdbc/GCCDS
    It is working fine.
    I’ve also developed Task Flow Applications for small thinks that are reused in multiple main applications.
    Each Task Flow Application has also one Application Module with the same connections type as main applications.
    All these task flows are deployed to JAR file (ADF Library JAR File) and are reused on my main applications. (drag and drop from the Resource Palette to ADF Regions….).
    There are some parameters passed to Task Flows, so that they can filter data depending on which main applications they are called from.
    Everything is working perfectly.
    All my main applications are using more and more task flows. Which is nice for the reusability etc…?
    Only ONE PROBLEM: DATABASE CONNECTIONS.
    Every Task Flows service made a database connection. So one user may have 10 database connections for the same adf page. And when there are 100 users that are working at the same time, it becomes a problem.
    How to share the same database connections for the main applications and all task flows which are used in the main application?
    Best Regards
    Nicolas

    Hi John,
    When I open a ADF Library JAR file of one of my task flow. (gcc_tf_recentSites.jar)
    I can see TF_RecentSitesService.xml and TF_RecentSitesServiceImpl.class in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service folder
    + bc4j.xcfg in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service\common folder.
    bc4j.xcfg details are
    +<?xml version = '1.0' encoding = 'UTF-8'?>+
    +<BC4JConfig version="11.1" xmlns="http://xmlns.oracle.com/bc4j/configuration">+
    +<AppModuleConfigBag ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<AppModuleConfig DeployPlatform="LOCAL" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model" name="TF_RecentSitesServiceLocal" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +<Custom JDBCDataSource="jdbc/GCCDS"/>+
    +</AppModuleConfig>+
    +<AppModuleConfig name="TF_RecentSitesServiceShared" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService" DeployPlatform="LOCAL" JDBCName="gccdev" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model">+
    +<AM-Pooling jbo.ampool.maxpoolsize="1" jbo.ampool.isuseexclusive="false"/>+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +</AppModuleConfig>+
    +</AppModuleConfigBag>+
    +</BC4JConfig>+
    So, it seems that the Application Module is packaged with the task flow....
    Is it normal ?
    Regards
    Nicolas

  • SQLDatabase: Read a lot of data at once and process in memory or read the data when I need it?

    I'm not sure how to approach this problem. I require a big chunk of data records from the SQL server. This chunk is based on variables, so I don't know before what records I need. I need to do a large series of calculations and each calculation requires one
    (or more) records from this chunk of data. Again: I do not know which records are required.
    Should I:
    A. Load this data into the application memory all at once
    This creates a single connection to the DB, loads ALL required data by a query command (and a forward only DataReader) and then doesn't bother the SQL server anymore.
    The datafetch seems to be slow, since it's reading hundred of thousands of lines into memory
    B. Whenever the calculation needs data, retrieve it from the database
    This would open and close a connection to the SQL db multiple times per second.
    The initial datafetch is reduced to only a few miliseconds, but creates a massive load on the SQL server during calculation.

    Firstly, if you can turn your whole calculation in to an SQL query (or a series of queries or a stored procedure) then do so. Databases are good at this stuff, and you or a DBA may be able to do a lot to improve the query if it's still too slow.
    If not:
    Use a connection pool. Not doing so is usually crazy, unless you're writing a script that only connects once or twice.
    If you're testing this in a development environment with a local DB, beware that there can be a big difference in performance characteristics compared to a production one and don't over-optimize based on what you measure. Network delays in particular could
    catch you out. Fetching one row at a time may be fine with a low network latency, and awful with a high one.
    Database sizes are usually bigger in production, and go up over time. If you fetch all the data in advance you could get caught out and run out of memory (unless you know more about your data then we do...).
    As Pieter B suggests, you're probably better fetching data in batches if you really need a large number of rows. Then you'll neither blow everything else out of your server's memory, nor have a network latency and query overhead on every row. It'll also help
    if you want to report progress to the user.
    If you're really serious about making it go as fast as possible and not using SQL to do it, then you could try parallelizing your code. Then you can be calculating with
    one set of data whilst fetching the next, and if your production DB has multiple cores and disks you can parallelize in the DB, too. You could also look at caching, if that's appropriate (memcached and similar, or directly in your server if you know your data
    sizes well enough).

  • When updating ICloud Control, I Tunes and Quick Time, they all get hung up.  I  have tried downloading each separately, tried uninstalling and reinstalling and I still have the same issue every time I need to do an update.

    I'm hoping someone can talk me through this issue; I have not updated in over a year!  I am using a Windows 7

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • [VS2013 Update4] HTML Client loading child and grandchild entities in separate OData requests even when not needed?

    Repro steps:
    create new LightSwitch HTML C# app
    Attach to Northwind OData service - http://services.odata.org/V3/Northwind/Northwind.svc/
    include Order_Details, Orders, and Customers
    add screen -> browse data, choose Order_Details
    in the tile list that comes up, add other screen data, Order.Customer.ContactName
    delete the 3 columns it added by default (deleting them isn't necessary to cause the issue, just makes the issue more obvious)
    F5 and F12 in the resulting browser and make sure to check the Network tab
    The resulting tile list shows just the contact names of the customers for the orders, as you'd expect, but they fill in slowly instead of all at once.
    In the Network tab, you'll notice the first data request is what's expected in terms of including the associated child and grandchild entities
    http://localhost:54553/NorthwindEntitiesData.svc/Order_Details?$expand=Order/Customer,Order&$top=45
    Now, I'm a little confused at this point why it's not using $select to only fetch the particular properties needed, instead of it including all the Order and Customer properties as well, but that's secondary to this particular issue.
    If you check the response, you'll see that the JSON returned definitely includes (as you'd expect) the Order and Customer, and the Order.Customer.ContactName in particular is definitely included - here's the first few lines of the response (reformatted to
    be readable)
    "odata.metadata": "http://localhost:54553/NorthwindEntitiesData.svc/$metadata#Order_Details",
    "value": [{
    "Order": {
    "Customer": {
    "CustomerID": "VINET",
    "CompanyName": "Vins et alcools Chevalier",
    "ContactName": "Paul Henriot",
    After that is a bunch of further requests for Customers and Orders based on id, even though the first request already included all the data we need to display them.
    http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27VINET%27
    http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27TOMSP%27
    http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27HUNGO%27
    ...etc...
    As you'd imagine, these requests have a pretty big negative effect on performance, especially if you have multiple columns exhibiting this effect.
    Is this By Design?  Am I doing something wrong?  Is there a workaround for this?
    Thanks!

    After that is a bunch of further requests for Customers and Orders based on id, even though the first request already included all the data we need to display them.
    http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27VINET%27
    http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27TOMSP%27
    http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27HUNGO%27
    ...etc...
    This really has bad impact on lightswitch performance, you can submit it to Visual Studio Connect Site, https://connect.microsoft.com/VisualStudio

  • My daughter forgot her passcode, phone is disabled.  I attempted restore procedures by placing phone in restore mode and syncing to original computer, but it still says I need the passcode and does not offer option to restore as new.  Verizon can't help.

    My daughter forgot her passcode.  Phone is now disabled.  I attempted restore procedures by placing phone in restore mode and connected it to the computer / itunes with which it was originally synced.  itunes recognized phone in restore mode and said I must restore.  I clicked restore, restore and update.  Update began, itunes recognized the device by name and gave error message that stated I must have the passcode to restore.  There was no option to restore as new.  I attempted to restore the iphone 4s on another computer by instaling itunes, but same error messages appeared.  I contacted Verizon and they said they could not help me.  The nearest apple retail store is over 40 miles away.  PLEASE HELP!

    If You Are Locked Out Or Have Forgotten Your Passcode
    iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    iOS- Understanding passcodes
         If you have forgotten your Restrictions code, then follow the instructions
         below but DO NOT restore any previous backup. If you do then you will
         simply be restoring the old Restrictions code you have forgotten. This
         same warning applies if you need to restore a clean system.
    A Complete Guide to Restore or Recover Your iDevice (if You Forget Your Passcode)
    If you need to restore your device or ff you cannot remember the passcode, then you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and re-sync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.
    Try restoring the iOS device if backing up and erasing all content and settings doesn't resolve the issue. Using iTunes to restore iOS devices is part of standard isolation troubleshooting. Restoring your device will delete all data and content, including songs, videos, contacts, photos, and calendar information, and will restore all settings to their factory condition.
    Before restoring your iOS device, Apple recommends that you either sync with iTunes to transfer any purchases you have made, or back up new data (data acquired after your last sync). If you have movie rentals on the device, see iTunes Store movie rental usage rights in the United States before restoring.
    Follow these steps to restore your device:
         1. Verify that you are using the latest version of iTunes before attempting to update.
         2. Connect your device to your computer.
         3. Select your iPhone, iPad, or iPod touch when it appears in iTunes under Devices.
         4. Select the Summary tab.
         5. Select the Restore option.
         6. When prompted to back up your settings before restoring, select the Back Up
             option (see in the image below). If you have just backed up the device, it is not
             necessary to create another.
         7. Select the Restore option when iTunes prompts you (as long as you've backed up,
             you should not have to worry about restoring your iOS device).
         8. When the restore process has completed, the device restarts and displays the Apple
             logo while starting up:
               After a restore, the iOS device displays the "Connect to iTunes" screen. For updating
              to iOS 5 or later, follow the steps in the iOS Setup Assistant. For earlier versions of
              iOS, keep your device connected until the "Connect to iTunes" screen goes away or
              you see "iPhone is activated."
         9. The final step is to restore your device from a previous backup.
    If you can not restore your device then you will need to go to recovery mode.
    Placing your device into recovery mode:
    Follow these steps to place your iOS device into recovery mode. If your iOS device is already in recovery mode, you can proceed immediately to step 6.
         1. Disconnect the USB cable from the iPhone, iPad, or iPod touch, but leave the other end
             of the cable connected to your computer's USB port.
         2. Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the
             red slider appears, then slide the slider. Wait for the device to turn off.
              If you cannot turn off the device using the slider, press and hold the Sleep/Wake
              and Home buttons at the same time. When the device turns off, release the Sleep/Wake
              and Home buttons.
         3. While pressing and holding the Home button, reconnect the USB cable to the device.
             The device should turn on. Note: If you see the screen pictured below, let the device
             charge for at least ten minutes to ensure that the battery has some charge, and then
             start with step 2 again.
         4. Continue holding the Home button until you see the "Connect to iTunes" screen.
             When this screen appears you can release the Home button.
         5. If necessary, open iTunes. You should see the following "recovery mode" alert:
         6. Use iTunes to restore the device.
    If you don't see the "Connect to iTunes" screen, try these steps again. If you see the "Connect to iTunes" screen but the device does not appear in iTunes, see this article and its related links.
    Additional Information:
    Note: When using recovery mode, you can only restore the device. All user content on the device will be erased, but if you had previously synced with iTunes on this computer, you can restore from a previous backup. See this article for more information.

  • HT1937 i have just downloaded a new version of Iphone software on my iphone 3 . but i'm facing problem in configuring it . also tried to configure it with itunes but it always says that there's no sim card in your phone and previously i was using same sim

    i have just downloaded a new version of Iphone software on my iphone 3 . but i'm facing problem in configuring it . also tried to configure it with itunes but it always says that there's no sim card in your phone and previously i was using same sim without any problem . need solution . kindly help .

    Hello ashharuddin,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iPhone: Troubleshooting No SIM
    http://support.apple.com/kb/ts4148
    Toggle Airplane mode On and Off.
    Try turning iPhone off and then on again.
    Check for a carrier settings update. Tap Settings > General > About. If an update is available, a prompt will appear.
    Remove the SIM Card and verify that it is a valid, carrier-manufactured SIM. Also verify that it is not damaged, worn, or modified. Then reinsert it.
    Restore the iPhone.
    Have a nice day,
    Mario

  • My ipad is on an infinite loop.  I used ios7 for a few days and then did updates on some of my apps. that's when the infinite loop started.  I have tried pressing the power and home button at the same time, but it doesn't work. Please help!

    my ipad is on an infinite loop.  I used ios7 for a few days and then did updates on some of my apps. that's when the infinite loop started.  I have tried pressing the power and home button at the same time, but it doesn't work. Please help!
    I even tried some hints posted for ios6 (turn off Ipad, holding home button and plugging in power cord at the same time and then releasing the home button)
    I did manage to get a different screen that shows the itunes icon and a power cord, but nothing happens.

    You were on the right track. You got the connect to iTunes screen and you ended to use iTujes to restore your iPad. Try recovery mode again.
    Recovery Mode Instructions
    Disconnect the USB cable from the iPad, but leave the other end of the cable connected to your computer's USB port.
    Turn off iPad: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for iPad to turn off.
    If you cannot turn off iPad using the slider, press and hold the Sleep/Wake and Home buttons at the same time. When the iPad turns off, release the Sleep/Wake and Home buttons.
    While pressing and holding the Home button, reconnect the USB cable to iPad. When you reconnect the USB cable, iPad should power on.
    Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears you can release the Home button.
    If necessary, open iTunes. You should see the recovery mode alert that iTunes has detected an iPad in recovery mode.
    Use iTunes to restore iPad.

  • I am running Vista and Windows Mail, I can not open PDF files when in Windows Mail, I must save to Desktop first, this has changes recently and I do not know why or how to fix

    I am running Vista and Windows Mail, I can not open PDF files when in Windows Mail, I must save to Desktop first, this has changes recently and I do not know why or how to fix.
    Why after 6 year's this has changed?
    I would like to open PDF's straight from Window Mail.

    Good day Jeff.
    I am running most current Adobe Reader X.
    Tks Mark

  • Hello! I have one iTunes library on my iPod and one iTunes library on my computer. When I connect my iPod touch to my PC, however, I cannot find any files in my iPod except for pictures. How can I find the music files so I can add them to my iTunes?

    Hello! I have one iTunes library on my iPod and one iTunes library on my computer. When I connect my iPod touch to my PC, however, I cannot find any files in my iPod except for pictures. How can I find the music files so I can add them to my iTunes?

    You can't do that.
    And before you decide to store any music that you own on a computer at work, talk to your IT department. Many organizations do not permit it for legal reasons. Standard policies are that anything stored on company owned computers is the property of the company. It could not be legally stored on their machines unless you transfer the licenses and all copies, physical and digital, to the company, meaning you no longer own the music. If they were to be audited and could not prove that they own the music, they would be subject to copyright violation penalties. Just use your iPod when you're at the office if you want to listen to music.

  • How can I save my data and the date,the time into the same file when I run this VI at different times?

    I use a translation stage for the experiment.For each user in the lab the stage position (to start an experiment) is different.I defined one end of the stage as zero. I want to save the position , date and time of the stage with respect to zero.I want all these in one file, nd everytime I run it it should save to the same file, like this:
    2/12/03 16:04 13567
    2/13/03 10:15 35678
    So I will track the position from day to day.If naybody helps, I appreciate it.Thanks.

    evolution wrote in message news:<[email protected]>...
    > How can I save my data and the date,the time into the same file when
    > I run this VI at different times?
    >
    > I use a translation stage for the experiment.For each user in the lab
    > the stage position (to start an experiment) is different.I defined one
    > end of the stage as zero. I want to save the position , date and time
    > of the stage with respect to zero.I want all these in one file, nd
    > everytime I run it it should save to the same file, like this:
    > 2/12/03 16:04 13567
    > 2/13/03 10:15 35678
    >
    > So I will track the position from day to day.If naybody helps, I
    > appreciate it.Thanks.
    Hi,
    I know the function "write to spreadsheet file.vi"
    can append the data
    to file. You can use the "concatenate strings" to display the date,
    time as well as data... Hope this help.
    Regards,
    celery

  • How can I do to acquire and save date in the same time and in the same file when I run continual my VI without interrupti​on.

    I've attached a VI that I am using to acquire amplitude from Spectrum analyzerse. I tried to connect amplitude ouput to the VI Write Characters To File.vi and Write to Spreadsheet File.vi. Unfortunately when I run continual this VI without interruption, labview ask me many time to enter a new file name to save a new value.
    So, How can I do to aquire and save date in the same time and in the same file when I run continual my VI for example during 10 min.
    Thank you in advance.
    Regards,
    Attachments:
    HP8563E_Query_Amplitude.vi ‏37 KB

    Hi,
    Your VI does work perfectly. Unfortunately this not what I want to do. I've made error in my last comment. I am so sorry for this.
    So I explain to you again what I want to do exactly. I want to acquire amplitude along road by my vehicle. I want to use wheel signal coming from vehicle to measure distance along road. Then I acquire 1 amplitude each 60 inches from spectrum analyzer.
    I acquire from PC parallel port a coded wheel signal coming from vehicle (each period of the signal corresponds to 12 Inches). Figure attached shows the numeric signal coming from vehicle, and the corresponding values “120” and “88” that I can read from In Port vi.
    So I want to acquire 1 time amplitude from spectrum analyser each 5
    period of the signal that I am acquiring from parallel port.
    So fist I have to find how can I count the number of period from reading the values “120” and “88” that I am acquiring from In Port (I don’t know the way to count a number of period from reading values “120” and “88”).
    Here is a new algorithm.
    1) i=0 (counter: number of period)
    2) I read value from In Port
    3) If I acquire a period
    i= i+1 (another period)
    4) If i is multiple of 5 (If I read 5 period)
    acquire 1 time amplitude and write to the same
    file this amplitude and the corresponding distance
    Distance = 12*i). Remember each period of signal
    Corresponds to 12 Inches).i has to take these
    values: 5,10,15,20,25,35,40,45,50,55,60............
    5) Back to 2 if not stop.
    Thank you very much for helping me.
    Regards,
    Attachments:
    Acquire_Amplitude_00.vi ‏59 KB
    Figure_Algorithm.doc ‏26 KB

  • How can I create an icon that when clicked will open and maximize an image file?

    How do I create a icon that when clicked will open and maximize an image file?  I have tried to use the simple image widget with maximize upon tap/click - however I am can only size the image really small and put on the page.  I'd prefer to have a graphic that when clicked it simply opens up the image.  This is for a very simple question/answer book.   The user is suppose to look at a picture and locate something.  I want to put an 'Answer' graphic on the image and then the user can click the 'answer' graphic and it will open up the picture with the answer identified. 
    Is this possible?

    Have yiu tried the PopOver widget?  You can drop an image into it, maximise the image and the widgets window...But, you cannot get it full screen.
    With iBooks Author, you either learn to use what is available within the app, or look online for third party widgets to purchase which suit your project.

Maybe you are looking for

  • Incompetent CS ignores you, lock your call/case or sends defective parts : What should i do?!

    Hello. I live in France and the Lenovo CS (same line for all europe i guess) has always been poor in terms of communication (title says incompetent but autistic would be a better word for the case..). Apparently i'm far from being the only one feelin

  • Sales order number should be sent as a SMS to customer automaticaly

    Hi,      i want whenever i raise the SO that respective SO number should gone to the customer as SMS automatically. Please suggest how i can do this?

  • CDR report not working

    Hi, We have LYNC 2013 and Monitoring is enabled. the CDR report is not working. even User Activity summary for telconferencing and for audio, reports not working. Kindly suggest troubleshooting steps. Can we have any SQL query to fetch the report fro

  • CFL - "oForm.ChooseFromLists.Item("?")" List in all documents

    Hi to all, is there anyone who can tell on how to get the exact "oForm.ChooseFromLists.Item("?")" list in all document forms: example AR,AP,Inventory transfer, Service call etc.....

  • BW configuaration documents

    Hi...I am new to BW..Can any one of you please send me the detailed configuartion documents for R/3 and BW side. Like how exactly we should start a  project from intial stage configuaration in R/3 side and BW side..Please send me some kind of PPT / s