Adding Content to the Library

I was cleaning up my closet and found some discs of material I'd forgotten about . . .some grayscale gradients, movie objects, etc.
I thought it would be convenient to add these to to Motion's Library so they'd be easily accessible when I'm browsing Motion's Library, but I can't find a way to make that work. I put several the things I want to add in a folder and dragged that folder into Motion's Library folder, but I can't see that folder when I open Motion and look at its library. I tried dragging that same folder into Motion's Content folder, but that didn't work either.
Is there a clever way to make these other materials easily available in Motion?

Thanks Mark, but I'm not seeing how to do that.
I tried to drag a file (and a folder of files) from my desktop to the Favorites folder in the Library Tab, but nothing happens. I looked for a Favorites folder in the root Library where Motion keeps everything else, but I don't see such a folder.
The only thing I could figure out to do was import the files into the Media tab of a Motion project and drag them from there to the Favorites folder. I don't know if this is a good way to do it or not, but my problem with it is that the Favorites folder would soon have so much material is would be terribly cluttered.
The only thing I can see in the Motion Manual is "Once you have created favorites and stored them in the Favorites Menu folder in the Library tab, they appear in the Favorites menu, grouped by type." But when I pull down the Favorites menu, I just see one long list of filters and and media listed in alphabetical order.
Maybe there's a way to make sub-folders in the Favorites folder? I've looked everywhere I can think of in the manual and it doesn't discuss any of this.

Similar Messages

  • Adding Content To the Top-Level of Navigation bar ?

    Hi,experts ,
       i have a problem with adding content to the top-level of navigation bar ?
    I have the authority of administration.I have added a customizing role with the entry-point property to myself userid . I have checked my navigation-target page's property can be visible in top-level navigation. I checked my my display level is set as 2 .
       However ,i dont get the folder content at the top-level navigation.Anyway,when i check the delta link trace,there is no folder that connect to my role .
       Anyone helps me out ?
    Thanks in Advance .

    Hi Eleanor,
    If you already created a role with an entry point and assigned it directly to you user, you may just have to refresh the portal page. You may also check the authorizations of you role.

  • What is the problem with Itunes 11.0.1.12 and adding music to the Library?

    What is the problem with Itunes 11.0.1.12 and adding music to the Library?  I had no problems when I updated, just had to get used to the new format and appearance.  Added a few albums here and there, and then today I can't get anything in the Library.  I've always just dragged and dropped my music with no problems.  I've had an Ipod for the last six years and never encountered any big problems with Itunes or my various Ipods.

    Why is this Itunes such a pile of junk?  If I restart my computer I can sometimes find the recently added music in my Itunes Library. 
    It would be nice to know if other people are having the same problems.

  • With XP as my OS the other users don't see the contents of the Library that I have created

    With XP as my OS the other users don't see the contents of the Library that I have created

    If you have created new users on your computer they will not be able to share or see your library unless you move the music directly under the C: drive. When you download/import music to iTunes it will always be under your User name even if you are the only User.
    If you decide to move your music directly to the C: drive be sure to change the preferences in iTunes to locate the new music and the new location.
    iTunes Preferences: Edit > Preferences > Advanced and once you're there, just change location of iTunes media.

  • Is there a simple way to downsample songs without re-adding them to the library?

    Hello all, here's my problem.
    I have a library of about 60 days worth of music, 176GB in size. I have most of my songs in 256kbps and above, with a vast amount in 320mp3. I use the Date Added sorting a lot and I do not want to mess up the chronological system in any way. Basically, the way my "history" looks now should be unaffected. There is a very large amount of playlists too, so no song should have to be manually re-added to each playlist it used to be in. The play count and ratings are  also vital for me, so they cannot be lost.
    Now, for the actual question, is there a way where I could select which songs can I downsample to a lower-resolution, without having to re-add it to the library, but instead substitute it for the previous file? Again, the file cannot be simply re-added but it has to replace the file that the library links to in order not to lose all the precious information.
    If I could do all of this within iTunes, the better.
    Any help is appreciated!

    No.  In down sampling with iTunes a new file is created and added to the library.  Most of the old data are preserved but some such as date added are created when the track is added.
    Using a third party tool may achieve what you want because the new file could overwrite the old one.  I recall using a third party tool to edit a mp3 and overwrite the old file.  iTunes was tricked into thinking the replacement was still the original file, but of course the edits were in place.  I can't make a specific application recommendation for bulk conversion where it will overwrite the old file.
    I will regard this as a general iTunes question but in general if you are using beta software versions you should not be posting in the main iTunes forum.

  • I can't get iTunes to list content from the library on my backup HD.

    My old G5 crashed but I pulled the hard drive.  I've got a mini now and I want iTunes to read the content from the second drive (using a dock).  I can pull up one song at a time and it comes up in the Library under Music no problem. But I'd like the Library interface to pick up and read the media directly from that drive.  I've tried redirecting under 'Advanced Preferences' but the Music Library doesn't seem to see anything. Any ideas for a computer novice? Thanks.

    Hold Option and launch iTunes.
    Select Choose library and select the iTunes folder on the external.

  • Adding HTML into the library in 'Code' view

    Adding an object into the Library from ‘Design’ view works as advertized… however I’m looking to add HTML into the Library that is not ‘seen’ in ‘Design’ view… for example… some of the META tag data in the Header section.
    In my reading… I have come across references that this can be accomplished…but I’m being frustrated by the fact that while in ‘Code’ view the MODIFY/LIBRARY/ADD OBJECT TO LIBRARY…. The “Add object to library” is grayed out.
    I’m about down to thoughts like “you can’t get there from here”… or … “you ain’t smart enough to figure out how to do it”.
    Is this ‘doable’?... and if so… what are the proper sequence of steps.
    Many thanks for any and all inputs..

    Btw Nancy… just as a heads-up, to save the next guy a bit of frustrations…
    …the pointer you provided is no longer working:
    Guidance on when to use DW Templates, Library Items and SSIs  -
    http://www.adobe.com/devnet/dreamweaver/articles/ssi_lbi_template.html
    Thanks again for the help… I’m off and running in other areas…
    (...why did a vision of Don Quixote and windmills just spring into my mind??)
    Best regards,
    zippes

  • HT2638 I am using OSX 10.8.5 with iPhoto 11. I have damaged my iPhoto library and am unable to open up my library with iPhoto. When I use 'open package contents' with the library, I can see that all my photos are there. Can I rebuild the events?

    I have tried the option + command button while opening iPhoto but this has not helped.

    Your next step would be tp try rebuild with iPhoto Library Manager and its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.

  • Adding files to the library

    I have a few things I've recorded myself and some other audio I would love to use to expand my Soundtrack Pro library. What's the proper way (if there is one) to add files to the library so they show up in the application's library? Sorry if this has been asked before. I tried searching for the question in a few different ways. Thanks in advance.

    OKay, I just came across a question someone had about moviny their library and I realized the way they did it is also the way to add directories, so I indirectly got my answer.

  • Is it possible to run iTunes from a NAS hard drive so that the content is available to 1st Gen Apple TV and I can turn off my MacBook and still see the content of the library?

    I have a first gen Apple TV with a 160 gig hard drive, it is nearly full with films and music, my iTunes library is well over 190 gig and climbing, the only way I can access all of my music and films is to have iTunes open on my Mac. I have now moved my library to a NAS device and I want to be able to run iTunes so that my entire library is available on the Apple TV without having to have my Mac switched on. So the first question I have, is this possible? Secondly, if it is possible how do you do it?
    The ideal solution would be for iTunes to run from the  NAS as I have already told iTunes my library is there.
    Thank

    You can certainly put your library on a flash drive, though I'd strongly, strongly recommend that you have another copy of your library elsewhere, as flash drives are easily lost, broken or corrupted. You cannot count on tracks always being available for redownload from the iTunes Store, if you have any such.
    The easiest way to move your library is to just drag the entire iTunes folder (the _entire_ folder, _not_ just the iTunes Music folder) to your desired location. Then hold down the Shift key while launching iTunes. You'll be given a dialog box where you can select the iTunes library you want to use. Navigate to and select the iTunes folder in it's new location.
    Note that this procedure assumes that all of your tracks are contained in the iTunes folder. If they're scattered around your volumes, moving them becomes much more complex.  And don't launch iTunes with the flash drive not mounted or iTunes will default back to the internal drive. If it does, though, just mount the external drive and launch iTunes with the Shift key again.
    Don't delete the tracks from the old location until you've confirmed that they're working correctly from the flash drive.
    Regards.

  • I have all my songs on an external hard drive and I've added them to the library but I can't edit any information? Only on songs located on the hard drive.

    All the information about a song can't be changed when the song is located on my external hard drive

    Try changeing your Read/Write permssions for those songs. Just find the song file, Right click, go to Properties then Uncheck Read-Only

  • Adobe Functional Content and the Creative Cloud

    Hello All
    To any Adobe Employee who may read this, can you please get someone at Adobe to take control of this issue and see that the library, templates and all other functional content gets packaged correctly and enabled as a download and "sub-install" for the parent product inside the Adobe Application Manager.
    I think as subscribing users we should get better service and direction from Adobe in regards to this functional content. As I type this I have more than 10 tabs open, each one leading to a thread that has something to do with how to install and fix a problem with the Functional Content for After Effects, Premiere Pro and Encore.
    See if you can in less than 30 minutes figure out exactly what to do to activate this content by reading these threads:
    http://forums.adobe.com/message/4447237#4447237
    http://helpx.adobe.com/x-productkb/multi/library-functional-content-missing.html
    http://forums.adobe.com/message/4418591#4418591
    http://forums.adobe.com/message/4400620#4400620
    http://forums.adobe.com/thread/1006810?start=0&tstart=0
    http://forums.adobe.com/message/4511169#4511169
    http://forums.adobe.com/thread/1028055?tstart=0
    http://forums.adobe.com/message/4417092#4417092
    http://forums.adobe.com/thread/1002454
    http://forums.adobe.com/message/4417092#4417092
    I have been very reluctant to do anything because I am reading a lot of conflicting and incomplete information. This link in particular, http://helpx.adobe.com/x-productkb/multi/library-functional-content-missing.html, is really unhelpful because there are 3 methods to do something but reading it I am not sure if each method does the same thing or if each does one part of the 3 sets of missing Functional Content. Additionally "solution" 3 presents a place to put the content but then leaves out the path we are to do it to.
    Most disappointing is the fact that the first "solution" did not get me the menu buttons I am looking for in Encore and I don't know if I screwed up or if the install was incomplete for some reason.
    Do I now need to install one of the other "solutions"? Those of you in the community that are about to hit reply, please don't. Do not answer that question.
    Here is why...
    Adobe is responsible for delivering us customers a product. It is Adobe's responsibility to fix the mess that a number of paying customers are having regarding this Functional Content.
    TO ADOBE:
    Here is what I and I think a lot of other subscribers want you to do:
    You already have a Solution in place. One that doesn't require a lot of user intervention and doesn't require anyone to pick a "solution" and screw it up, search for more help and spend hours of their time fixing a mess.
    Adobe Application Manager. Create the proper installation packages. Put them on the servers, tell the AAM how to clean up the mess any users who have tried these "solutions" have made. Then have it install the proper packages as a "Sub-Installation" for each of the parent software that it is for.
    This solution will not only make things better for us end users, but you will also make the manageability of the Functional Content easier for your teams as well. And if your teams wanted to add additional Functional Content to any program that is part of the creative cloud or that the Adobe Application Manager manages, then it would be a simple matter of creating an installation package and adding it to the AAM's list of installable programs.
    You just did this exact thing with Lightroom 4.1! Why can you not do this for the Functional Content?!?
    Back to the Community Members that want to answer my post. Don't. Instead if you agree with me or even if you don't, sign off on this thread or indicate your virtual thumbs down. Either way I don't want an answer, I want an action from Adobe, the only ones who can fix the mess.
    I really believe that the Application Manager is the most elegant solution. If any of you have ever used Steam, you know what a great feeling it is when you can download a game demo, try it, buy it and just have everything take care of itself. I don't even have to worry about updates; Steam takes care of my games. And the thing that makes it really valuable? I DON'T PAY $50 A MONTH TO USE STEAM AND HAVE IT JUST WORK, IT IS FREE!
    All I want at this point is Functional Content that I don't have to read a 50+ page manual to install. I know that is an exaggeration, but honestly if it is 1 badly written set of instructions or 50 what does it matter? I don't pay Adobe so I can read up on how to install their software; I just want to use it.
    I guess I should also point out that this is now the second large hold up to my project that I started subscribing for. The first was a problem that I again had to figure out the solution to by working around it, when again Adobe seems to be unable to correct the problem, here, here, here and here.
    And now here I am again at a slight stand still because I can't use my DVD authoring software to create a button on a Wedding DVD menu.
    Okay, you can go ahead and reply... but I would still prefer no answers, just /agree or /disagree.

    Did you even read the post?
    Jeff A Wright wrote:
    For now though please reference Library, title templates, template projects missing: Premiere Pro, After Effects, Encore CS5 - CS6 - http://helpx.adobe.com/x-productkb/multi/library-functional-content-mi ssing.html for information on how to obtain the additional content.
    Have you read the page in your link?
    Can you correctly install from the instructions on that page?
    And I quote:
    Additional Solution: Install the Resource Central library content   
    Download the extra library content
    Choose your language to begin the download:
    English French German Japanese Italian Spanish Korean
    Extract the Library content to the Library folder
    Extract the zip file that you just downloaded. This will create a .7z file, eg. en-US.7z.
    Extract the .7z file to any convenient location, eg. Desktop. This will create a folder based on the language you selected.
    Copy the contents of the language folder (eg. en-US) to the following location:
    Keywords: cpsid_85388
    Where? Copy the contents to where? I don't see a path written there... is it a secret? Do I have to highlight the hidden text? Nooo... that didn't work...
    Honestly I must appologize for my brashness and sarcastic attitude. I find it questionable to expect the paid subscribing creative but not technically inclined customers to do the work of fixing this problem when Adobe has the means and the tools to fix it for us.
    Jeff Bellune wrote:
    Not an employee, but I am a forum moderator.  Please stop spamming the forum with links to this topic.  They have all been deleted.
    Jeff
    Ok. Fair enough, I will admit that last night in my anger and frustration I was being a little childish.
    But as a Community Professional don't you believe that you would be better served by Adobe if they were to make one easy simple Adobe Application Manager download for the content that should have been published right at the launch of the new version? Wouldn't your time be better spent actually working on your projects rather than fixing Adobe's mess and responding to people in 10 different forums trying to help them?
    All of this also makes me wonder how Adobe prioitizes the "bugs" that people are dealing with. Wouldn't it be quick to put a someone or a couple of people on the problem of gathering the functional content and getting them to package it and ready it for publishing through the AAM? The process of adding it to the list of installs might be more complicated but a package that knows where to put the content? I would think that something like this could be give a get it done now priority as it would aleviate a lot of the forum posts and something like the missing export choices in Media Encoder or Premiere Multicamera Issues would take more time due to investigation and so you put them on a priority based on the number of users affected.
    It just seems to me that a month after launching a new version is an awfull long time for the publishing of an update to add functional content that was in all the previous versions.
    I guess I will stop "ranting" now. Thanks for responding Jeff AW, at least I have official word that there will be some sort of update on this issue.

  • Trying to identify what to change for user who has permissions on a library but gets no search results from the library

    We are running SP 2010 service pack 2.
    Search is working for people in general.
    Yesterday user Y asked me why they (user Y) does not get results when they search for documents in the library. They get results back when searching other libraries.
    The library has a limited number of users who can access.
    The user is explicitly added to the library's permissions with Read permission.
    When I look inside the library at specific documents, the user is listed as having Contribute,Limited Access privs on each document.
    As an admin, I have accessed the site and performed searches and gotten results. Others on the site with various permissions get results back.
    So  it appears that search is working.
    What other things can I check - via powershell perhaps - to help identify and resolve user Y's dilemma?

    What we found is this.
    At the site level, only 4 users have access. At the library level, 3 more users were added directly and given read permission.
    These three users could see the contents of the library, read the documents of the library, but when they attempted to search the library, got "Access Denied".
    I was able to negotiate for a resolution of this problem for us to create a new SharePoint group for the site, give it Read permissions,
    and add that group to the library permissions. I informed the owner that he could check other libraries and lists and remove that group if there were things there that should not be accesible.
    I also warned him that if he were to put something confidential in, say, the announcements section, he would need to remove the group from that list as well if he didn't want the people to see that.
    So, the users now can see the results page, which is returned as a URL immediately under the site.
    There were a couple other work arounds that we could have tried - moving the shared library to its own subsite with different permissions than the parent site, or having the users use the enterprise search and to refine the results down to the specific library.
    Thank you for your question!.

  • After adding folders to iTunes library, now have duplicates of each song

    I store all my music on a separate drive, M:\
    I have a specific file structure setup that has worked for me for years, M:\Artist\Album
    I recently received an iPod for my birthday, and started using iTunes. After adding my music drive (M:\) for inclusion into the library (without "keep..." and "copy..." selected, as to keep my current file structure intact), when selecting "File->Display Duplicates" just about every song in the library has a duplicate, one in the original folder "M:\Artist\Album", and another in "M:\Playlists\..\Artist\Album". I understand that basically somehow iTunes glitched and started in the "M:\Playlist" directory when adding to the library at some point, however I am at a loss as to how. In my actual folders I only have 1 copy of each song, so basically iTunes is making a symbolic link to each song and adding it into the library as a separate song.
    I have over 9000 (must...resist...meme...) songs in my library, and removing and restoring takes quite a while. I'm pretty sure I'm going to have to do this at least once now, but any ideas as to why or advice on how to avoid this particular problem in the future?
    I am pretty set in my ways of my current file structure, since I don't use iTunes as my primary media software, so I would prefer to not have to resort to succumbing to just letting iTunes handle everything the way it wants (I pretty much hate that).
    Thank you for any suggestions you may have.
    EDIT: Is there a way to have iTunes rename/move files when adding to its library to specific folders via custom rules based on ID3 information (i.e. WMP rip settings)?
    Message was edited by: kaziekama

    If you have "Keep..." and "Copy..." unchecked, iTunes will simply reference the existing file, and will not change your file structure, as you correctly note.
    I'm fairly sure that some other program is operating on your files. The "Playlists" folder that you mention has nothing to do with iTunes. On my PC, only Windows Media and Roxio use it.
    To your question +"Is there a way to have iTunes rename/move files when adding to its library to specific folders via custom rules based on ID3 information (i.e. WMP rip settings)?"+ the answer is no. When iTunes rips a CD, it names the files as track number and title, with no option to do differently. And as far as placing the ripped files, they go in Artist/Album, with no option to do differently. As full-featured ripping programs go, iTunes is not even in the race.

  • Adding Content

    First let me say that the documentation, while accurate, is not helpful.
    One task I have is to use the generic webservice to add content. I have created multipart/related content to post to the server. The content looks exactly like the content (except for the exact contents of the XML portion, obviously) the server sends when i get a document using the webservice.
    The server doesn't like it. I get a 500 error with no logging of anything... anywhere.
    What is the correct way to go about adding content using the generic webservice?

    I guess a level of frustration is building up here.
    I am looking at this stuff:
    http://docs.oracle.com/cd/E21764_01/doc.1111/e10807/a01_wsdl_and_soap.htm#BEHFACEG
    A co-worker found some sample applications (not sure where) which demonstrate that the sample file (below) can be posted.
    I am trying to adapt to my client app what is in the sample app (which like many sample apps is inexplicably written to run from a command line) to get it working
    and am running into one of 2 different errors. With the lack of logging on the server side; it is very hard to tell what is happening here.
    I think I am 1 or 2 small code errors away from having this working but I can't discern a logical path to a debugging approach from here.
    ------123454321
    Content-Type: text/xml; charset=utf-8
    Content-ID: <SoapContent>
    <?xml version='1.0' ?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
    <idc:service xmlns:idc="http://www.stellent.com/IdcService/" IdcService="CHECKIN_UNIVERSAL">
    <idc:document dDocName="SoapTest001" dDocAuthor="sysadmin" dDocTitle="Soap Test 001 Document" dDocType="Document" dSecurityGroup="Secure" dDocAccount="">
    <idc:file name="primaryFile" href="c:/temp/primary.txt"></idc:file>
    <idc:file name="alternateFile" href="c:/temp/alternate.html"></idc:file>
    </idc:document>
    </idc:service>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    ------123454321
    Content-Type: text/plain
    Content-ID: <primaryFile>
    This is the primary text.
    This is line two.
    This is line three.
    This is line four.
    This is line five.
    ------123454321
    Content-Type: text/html
    Content-ID: <alternateFile>
    <html>
    <head>
    <title>Alternate File Title</title>
    </head>
    <body>
    <table>
         <tr><td>This is the first row.</td></tr>
         <tr><td>This is the second row.</td></tr>
         <tr><td>This is the third row.</td></tr>
         <tr><td>This is the fourth row.</td></tr>
         <tr><td>This is the fifth row.</td></tr>
         <tr><td>This is the sixth row.</td></tr>
         <tr><td>This is the seventh row.</td></tr>
    </table>
    </body>
    </html>
    ------123454321--
    client app:
    import java.io.*;
    import java.net.*;
    import java.util.ArrayList;
    import java.util.List;
    import org.apache.commons.codec.binary.Base64;
    public class SOAPClient {
         public String urlIn;
         public String action;
         public String xmlContent="";
         public byte[] mimeDoc;
         public String uuid;
         public String user;
         public String password;
         public String messageOut;
         public String resultText;
         public String stackTrace;
         public boolean multiPart;
         public int statusIndicator = 0;
         public List outputObject = new ArrayList();
         // class shared variable space
         private InputStream responseIn;
         private byte[] responseInBytes;
         private List mimeHolder = new ArrayList();
         private List lengthHolder = new ArrayList();
         private List payloadHolder = new ArrayList();
         public SOAPClient (String thisURL, String thisAction, String thisXML){
              urlIn = thisURL;
              action = thisAction;
              xmlContent = thisXML;
         public SOAPClient (String thisURL, String thisAction, String boundry, byte[] documentIn, String un, String pw){
              urlIn = thisURL;
              action = thisAction;
              uuid = boundry;
              mimeDoc = documentIn;
              user = un;
              password = pw;
         public void executeCall () throws IOException{
              String retValue = soapPostaction();
              if(retValue.length() < 1 && messageOut.length() < 1){
                   messageOut = "No data returned";
              if(retValue.length() > 1 && messageOut.length() < 1){
                   messageOut = "Call suceeded";
              resultText = retValue;
         public static void main(String[] args) {
           protected String soapPostaction() {
                String outputText = "";
                try {
                     URL u = new URL(urlIn);
                     URLConnection uc = u.openConnection();
                     HttpURLConnection connection = (HttpURLConnection) uc;
                     connection.setDoOutput(true);
                     connection.setDoInput(true);
                     connection.setRequestMethod("POST");
                     connection.setRequestProperty("SOAPAction", action);
                     if(xmlContent.length() > 10){
                            connection.setRequestProperty("Content-Type", "text/xml;charset=UTF-8");
                            OutputStream out = connection.getOutputStream();
                            Writer wout = new OutputStreamWriter(out);
                            wout.write(xmlContent);
                            wout.flush();
                            wout.close();                      
                     } else {
                            connection.setRequestProperty("Content-Type", "Multipart/Related;boundary=" + uuid + ";type=text/xml; start=\"<SoapContent>\"");
                            connection.setRequestProperty("Content-Length",String.valueOf(mimeDoc.length));
                            String userpassword = user + ":" + password;
                            byte[] encoded = Base64.encodeBase64(userpassword.getBytes());
                            connection.setRequestProperty("Authorization", "Basic " + encoded);
                            connection.setDoOutput(true);
                            OutputStream wout = connection.getOutputStream();
                            int br = 0;
                            byte[] bf = new byte[mimeDoc.length];
                            InputStream dataOut = new ByteArrayInputStream(mimeDoc);
                            while(br != -1){
                                 br = dataOut.read(bf);
                                 wout.write(bf);
                            wout.flush();
                            wout.close();                                              
                     // get the body of the response
                     responseIn = connection.getInputStream();
                     byte[] buffer = new byte[1];
                     ByteArrayOutputStream baos = new ByteArrayOutputStream();
                     int bytesread = 0;
                     while(bytesread != -1){
                          bytesread = responseIn.read(buffer);
                          baos.write(buffer);
                     responseInBytes = baos.toByteArray();
                     // figure out what the server returned
                     String header = "";
                     String[] boundryMarker = null;
                     String boundryMarkerString = null;
                     for (int j = 1; ; j++) {
                        header = uc.getHeaderField(j);
                        if (header == null)
                             break;
                        if (uc.getHeaderFieldKey(j).startsWith("Content-Type"))
                             break;
                     if(header != null){
                          String[] headerParts = header.split(";");
                          if(headerParts[0].substring(0,headerParts[0].length()).startsWith("multipart/related")){
                                 for (int x = 0;x < headerParts.length;x++){
                                      if (headerParts[x].substring(0,8).startsWith("boundary")){
                                      boundryMarker = headerParts[x].split("=");
                                      boundryMarkerString = "--" + boundryMarker[1].substring(1,boundryMarker[1].length()-1);
                     ByteArrayInputStream readDataIn = new ByteArrayInputStream(responseInBytes);
                     // for multipart/related documents we need to read through the array and
                     // find the boundary markers so we can dig the various parts out
                     if(boundryMarkerString != null){
                          MyBufferedReader brd = new MyBufferedReader();
                          Reader dataIn = new BufferedReader(new InputStreamReader(readDataIn));
                          brd.TplBufferedReader(dataIn);
                          String thisLine = "";
                          String testLine = "";
                          int startLine = 1;
                          int endLine = 0;
                          int z = 0;
                          String[] lineBuffer = new String[400];
                          outer:
                          while(thisLine != null){
                               // find start
                               testLine = thisLine.trim();
                               if(testLine.startsWith(boundryMarkerString)){
                                    thisLine = brd.readLine(); // throw away line
                                    if(thisLine == null)
                                         break outer;
                                  z = z + thisLine.getBytes().length;
                                      String tempHolder = brd.readLine(); // this is the content type. We actually need to read this line
                                    lineBuffer = tempHolder.split(":");
                                  z = z + tempHolder.getBytes().length;
                                    thisLine = brd.readLine(); // throw away line
                                  z = z + thisLine.getBytes().length;
                                    thisLine = brd.readLine(); // throw away line
                                  z = z + thisLine.getBytes().length;
                                      startLine = z;
                                    // find end
                                      inner:
                                    while(thisLine != null){
                                       thisLine = brd.readLine();
                                       testLine = thisLine.trim();
                                       z = z + thisLine.getBytes().length;
                                       if(testLine == null || testLine.startsWith(boundryMarkerString)){
                                            endLine = z - startLine - boundryMarkerString.length() - 4; // constant accounts for newline and eof characters
                                            break inner;
                                    getStreamPortion (lineBuffer[1].trim(), startLine, endLine);
                                    continue outer;
                               thisLine = brd.readLine();
                               if(thisLine != null){
                                      z = z + thisLine.getBytes().length;                                
                          multiPart = true;
                     } else {
                          multiPart = false;
                     ByteArrayInputStream dumpData = new ByteArrayInputStream(responseInBytes);
                     outputText = convertStreamToString(dumpData);
                     stackTrace = "";
                     messageOut = "Sucess";
                     statusIndicator = 0;
                     return outputText;
                catch (IOException e) {
                     statusIndicator = '1';
                     try {
                          StringWriter sw = new StringWriter();
                          e.printStackTrace(new PrintWriter(sw));
                          stackTrace = sw.toString();
                          messageOut = "Java IO error: check \"stackTrace\" for details.";
                          sw.close();
                     catch (IOException er){
                     return "";
                } finally {
                     System.gc();
           private void getStreamPortion (String mimeType, int startAt, int endAt) throws IOException{
                String localMime = mimeType;
              byte[] outBuffer = new byte[endAt];
              int q;
              int z = 0;
              for(q=0;q<responseInBytes.length;q++){
                   if(q>=startAt && q<=(endAt + startAt)){
                        outBuffer[z]= responseInBytes[q];
                        z = z + 1;
                   if(z >= endAt)
                        break;
              mimeHolder.add(mimeHolder.size(), localMime);
              lengthHolder.add(lengthHolder.size(),Integer.toString(outBuffer.length));
              payloadHolder.add(payloadHolder.size(),outBuffer);
                List tempAr = new ArrayList();
                tempAr.add(mimeHolder.get(outputObject.size()));
                tempAr.add(lengthHolder.get(outputObject.size()));
                tempAr.add(payloadHolder.get(outputObject.size()));
                outputObject.add(tempAr);
         public String convertStreamToString(InputStream is) throws IOException {
                if (is != null) {
                     Writer writer = new StringWriter();
                     char[] buffer = new char[1024];
                     try {
                          Reader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
                          int n;
                          while ((n = reader.read(buffer)) != -1) {
                               writer.write(buffer, 0, n);
                     } finally {
                          is.close();
                          return writer.toString();
                     } else {
                          return "";}
      }

Maybe you are looking for

  • Text Message / Browser / Email typing lag

    Ever since I bought the iPhone 3G, I've noticed that when im typing out a text message / an email / in a browser, or anything that involves typing, my phone just randomly decides whether it was to lag or not. Sometimes there is no delay in typing spe

  • How to put my ipod on itunes

    I need to put my music from my ipod onto itunes because my libary erase

  • Lion recovery opens but can't click?

    First lion install downloaded from app store doesn't get beyond checking disk, after. 20 min. Gave up! Thenade USB drive by using disk utility then choosing after pressing option key at restart. Opens fine but no trackpad or enter key only arrow keys

  • Just spent best part of the day trying too restore

    restoring will not work for me errors every time the phone screen faded when i was on internet last nite and wouldnt turn on so tried restore everytime it would get half way too restore, then pop up on itunes with errors random ones -1 ,9 now stuck o

  • Error in billing header condition

    Hi Friends Greetings. In the header data condition of ZMRP & ZABT is being shown twice at the time of display of billing document using transaction code vf01 and vf02  which should be shown only once.. Please help me to solve this problem. With regar