Problem in accessing images in the KM from Portal code.

Hi All,
I need to develop a portal application that accesses the KM and displays the images that are stored in the KM to the user. There are 8 images which are stored in the /documents/Images directory in the KM. The user should be able to see the next image in the KM by clicking on the 'Next' button of the JSP and the previous image in the KM by clicking on the 'Previous' button of the JSP.
Below is the code which reads the KM and displays the images. However, the images that are displayed are not in a proper sequence. Also when the user clicks on the 'Next' button and arrives to the last image, although i disable the 'Next' button, when the user clicks on the 'Previous' button the user is not able to see the previous image. Infact the KM tries to display the next image which is not present and hence throws an IndexOutOfBoundsException. This happens vice versa for the 'Previous' button as well.
Any help would be highly appreciated and rewarded.
JSP Dynpage
package com.ltitl.image;
import com.ltitl.bean.ImageBean;
import com.sap.security.api.IUser;
import com.sapportals.htmlb.event.Event;
import com.sapportals.htmlb.page.DynPage;
import com.sapportals.htmlb.page.PageException;
import com.sapportals.portal.htmlb.page.JSPDynPage;
import com.sapportals.portal.htmlb.page.PageProcessorComponent;
import com.sapportals.portal.prt.component.IPortalComponentProfile;
import com.sapportals.portal.prt.component.IPortalComponentRequest;
import com.sapportals.portal.prt.component.IPortalComponentSession;
import com.sapportals.portal.security.usermanagement.UserManagementException;
import com.sapportals.wcm.repository.ICollection;
import com.sapportals.wcm.repository.IResource;
import com.sapportals.wcm.repository.IResourceContext;
import com.sapportals.wcm.repository.IResourceList;
import com.sapportals.wcm.repository.ResourceContext;
import com.sapportals.wcm.repository.ResourceException;
import com.sapportals.wcm.repository.ResourceFactory;
import com.sapportals.wcm.util.uri.RID;
import com.sapportals.wcm.util.usermanagement.WPUMFactory;
public class ImageControl extends PageProcessorComponent {
  public DynPage getPage(){
    return new ImageControlDynPage();
  public static class ImageControlDynPage extends JSPDynPage{
    public static ImageBean imageBean = null;
    public static IResource resource = null;
    public static IResourceContext resourceContext = null;
    public static IPortalComponentSession componentSession = null;
    public static IPortalComponentRequest request = null;
    public static IPortalComponentProfile profile = null;
    public static IUser user1 = null;
    public static RID rid = null;
    public static int count = 0;
    public static int total = 0;
    public static IResourceList children = null;
    public void doInitialization() throws PageException{
      request = (IPortalComponentRequest)this.getRequest();     
      componentSession = request.getComponentSession();
      profile = request.getComponentContext().getProfile();
      user1 = request.getUser();
      imageBean = new ImageBean();
       try
               com.sapportals.portal.security.usermanagement.IUser user =  WPUMFactory.getUserFactory().getEP5User(user1);
     resourceContext = new ResourceContext(user);
     String imagepath = profile.getProperty("PathToFolder");     
     rid = RID.getRID(imagepath);
     resource = ResourceFactory.getInstance().getResource(rid,resourceContext);
     if(resource != null)
             if(resource.isCollection())
                      ICollection collection = (ICollection)resource;
                      total = collection.getChildrenCount(true,false,false);
                      imageBean.setTotal(total);
                      children = collection.getChildren();
                      accessResource();
                 else
                      imageBean.setMsg_txt("resource " + resource.getName() + " is not a collection");
            else
                 imageBean.setMsg_txt("resource " + resource.getRID() + " does not exist");
          componentSession.putValue("imageBean",imageBean);
       } catch (UserManagementException ume) {
            imageBean.setMsg_txt("exception:" + ume.getLocalizedMessage());     
       catch(ResourceException ue) {
            imageBean.setMsg_txt("exception:" + ue.getLocalizedMessage());     
    public void doProcessAfterInput() throws PageException {
          IPortalComponentSession session = ((IPortalComponentRequest)this.getRequest()).getComponentSession();
          imageBean = (ImageBean)session.getValue("imageBean");
          if(null != imageBean) {
               accessResource();
          else
               imageBean.setMsg_txt("Image Bean null");
    public void doProcessBeforeOutput() throws PageException {
      this.setJspName("ImageOutput.jsp");
    public void onPrevious(Event event) throws PageException {
         --count;
     public void onNext(Event event) throws PageException {
          ++count;
public void accessResource() throws PageException {
try {
if(count >= 0 && count < total)
IResource resImg = children.get(count);
imageBean.setCount(count);
imageBean.setMsg_txt("count: " + count);
imageBean.setInitialPath("/irj/go/km/docs");
imageBean.setImageName("" + resImg.getRID());
else
imageBean.setMsg_txt("out of bounds count:" + count);
} catch (ResourceException e) {
     imageBean.setMsg_txt("resource exception:" + e.getLocalizedMessage());

ImageBean
package com.ltitl.bean;
import java.io.Serializable;
public class ImageBean implements Serializable {
     public String imageName;
     public String msg_txt;
     public String initialPath;
     public int count;
     public int total;
      * @return
     public String getImageName() {
          return this.imageName;
      * @param string
     public void setImageName(String string) {
          imageName = string;
      * @return
     public String getMsg_txt() {
          return this.msg_txt;
      * @param string
     public void setMsg_txt(String string) {
          msg_txt = string;
      * @return
     public String getInitialPath() {
          return initialPath;
      * @param string
     public void setInitialPath(String string) {
          initialPath = string;
      * @return
     public int getCount() {
          return count;
      * @return
     public int getTotal() {
          return total;
      * @param i
     public void setCount(int i) {
          count = i;
      * @param i
     public void setTotal(int i) {
          total = i;
Hope this helps.

Similar Messages

  • Problems while accessing images outside the web document-root folder

    Our application runs on Oracle application server on Linux. Facing problems while accessing images outside the web document-root folder. This works with changes in global-web-application.xml by including the <virtual-directory> tag. The same change does not work when done on Linux machine. It is unable to find the image. Please help in resolving this issue.
    </locale-encoding-mapping>
    </locale-encoding-mapping-list>
    </web-app>
    <virtual-directory virtual-path="/img" real-path="/home/eposuat/" />
    </orion-web-app>
    Code in the jsp:
    <img width=700 height=700 src="/img/3.tif"></img>
    <img width=700 height=700 src="/img/WB.gif"></img>

    This is one of the least satisfactory aspects of site management in Dreamweaver, and several developers, including myself, have been pressuring the Dreamweaver team for some years to improve this. Who knows? They might eventually take notice.
    The only way to do this at the moment is to create two site definitions, one nested inside the other. Set up the site definition normally based on htdocs as your site root. Then create a new site definition based on site. Dreamweaver will nag you that it can cause problems, but it won't actually stop you from doing it. The only potential problem is with site synchronization.
    The problem with using site as the only basis for your site definition is that Dreamweaver automatically puts things like the Connections, Scripts, and other folders in the site root. So, everything ends up at the wrong level of the site hierarchy. Quite frankly, the whole thing is a bit of a pain. Dynamic site development was added to Dreamweaver only in version 6 (Dreamweaver MX), and no one had really thought through the need to store files outside the site root.

  • I am having a problem opening images in the Editor from iPhotos into photoshop elements

    I am having a problem opening images in the Editor from iphoto (on my macbook pro) to the photoshop elements

    What exactly is the problem? What happens when you try, and how are you trying to do this?

  • Problem in drawing image on the fly using jsp

    I have been searching the forum and web for the problem but in vain. I have wrote a jsp which creates an image on the fly from the data selected from the database. But after the image is drawn, it throws an IllegalStateException. The offending code is at the time of releasePageContext() method of the compiled jsp. I am using the following code in jsp to display the image.
    BufferedImage bi = obj.getBufferedImage();
    javax.imageio.ImageIO.write(bi,"png",response.getOutputStream());
    I even tried to do the same with servlet, but the problem is that when I am using forward action in jsp I am getting the image but the control is in the servlet and if I am including the servlet, I am getting junk characters instead of image. I have set the content type in servlet and also in jsp.
    Thank you in advance.

    Hi all,
    I've developed a web application using glassfish server... my database is postgresql.... i try to generate a report using Jasper Reports.... i've succesfully developed the report template..... My problem when ever i try to generate a report it gets the data from the back end.... and throws the following error.....
    StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
    at org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:652)
    at org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:196)
    at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:149)
    at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:142)
    at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:216)
    at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:134)
    at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:89)
    at org.apache.jsp.GenerateBirthCertificate_jsp._jspService(GenerateBirthCertificate_jsp.java:149)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:409)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    i've written my code in jsp.... My code is....
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ page language="java" import="java.io.*, net.sf.jasperreports.engine.*, java.sql.*, java.util.*" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>CDAC Portal</title>
    </head>
    <body>
    <%
    try {
    Connection con=null;
    String query="";
    String regNo="";
    regNo=request.getParameter("regNo");
    regNo = regNo.toUpperCase();
    out.println("Registration No :"+regNo);
    Class.forName("org.postgresql.Driver");
    con = DriverManager.getConnection("jdbc:postgresql://192.168.31.79:5432/Municipality","postgres","");
    System.out.println("connected succefully");
    ServletContext context = this.getServletConfig().getServletContext();
    File reportFile = new File(context.getRealPath("/reports/birth_cert.jasper"));
    query="select * from birth_details where regn_unit='"+regNo+"'";
    Map parameters = new HashMap();
    parameters.put("regNo",""+regNo);
    parameters.put("query",""+query);
    byte[] bytes = null;
    try {               
    bytes = JasperRunManager.runReportToPdf(reportFile.getPath(), parameters, con);
    response.setContentType("application/pdf");
    response.setContentLength(bytes.length);
    ServletOutputStream ouputStream = response.getOutputStream();
    ouputStream.write(bytes, 0, bytes.length);
    ouputStream.flush();
    ouputStream.close();
    } catch (JRException e) {
    System.out.println("Error : "+e);
    con.close();
    } catch(Exception exc) {
    System.out.println("Connection pool error :"+exc.toString());
    %>
    </body>
    </html>
    can anyone help me hw to solve this problem....
    Thanks in advance
    R Vijay,
    Project Engineer,
    CDAC, Chennai.
    India
    [email protected]
    [email protected]

  • Why do i have a problem with accessing images in adobe muse

    why do i have a problem with accessing images in adobe muse ??????!!!!!
    i need heeeeeelp ASAP
    pleeeeease

    I am on the begining stages with constructing the web so i do not have yet URL. The problem is i can not insert any image any way. Whether by fill a browser or by place image, i have the same issue. All the images with all image's format unable to be selected and it is turned off
    I really need help plz
    Is there any info i can supply that would help you figiring out the problem ??

  • New tip trick for capturing scanned images to the PB from your wireless network printer

    I've read a couple of threads here and on crackberry about not being able to print directly to a printer on the local network (although there is a way to print via the cloud from gmail apparently). Anyway it occurred to me that I can browse to my printer's IP address and in addition to allowing me to configure it, it also lets me scan documents to jpg, pdf, and tiff formats and then renders the scanned image through the browser. I tried this from the Playbook browser and it worked perfectly. i was able to view and save the scanned document directly to my Playbook file system. Even more conveniently I could just take a screenshot of the browser window. Now if only the printer would let me print the scan or better yet browse to and upload a local file for print my printing problems would be solved. I am using an older HP 2500 psc. Does anyone know of a newer model wireless/network printer that allows printing via the browser interface?

    Just to clarify. When your playbook and the wireless printer are on the same network, you can browse to the IP address of the wireless printer from your playbook just as you could from your PC or laptop. The browser will display the printer's web features which in my case includes the ability to scan the document that is laying on the scanner bed of the printer. When I click the scan button, the image of the scanned document renders on my playbook and I am able to save the rendered TIFF, JPG, PDF to the playbook locally or I can even just take a screenshot (press the playbook's volume up and down buttons simultaneously) and then the image of the document from the browser window automatically saves to the camera folder under pictures.
    What I would like is to find a wireless printer that from the web page that is displayed when I browse to the printers local IP address be able to browse to a file on my playbook and upload it to the printer (kind of like uploading or attaching a document to a gmail email message or uploading a local picture to Facebook etc...) and then instruct the printer to print the document. Obviously this would only work when I was on the same local wireless network as the printer but it would essentially solve the "how to print directly to a wireless printer from the playbook?" question.

  • The ios8 update is causing innumerable problems with my ipad. The info from my calendar just disappeared, I am typing blind with the keyboard most of the time, and I cannot upload pics or paste to FB. When will this be fixed and what can I do in the

    The ios8 update is causing innumerable problems with my ipad. The info from my calendar just disappeared, I am typing blind with the keyboard most of the time, and I cannot upload pics or paste to FB. When will this be fixed and what can I do in the Meantime?

    Have you tried yesterday's update to iOS8.0.2?
    iOS 8.0.2
    This release contains improvements and bug fixes, including:
      •  Fixes an issue in iOS 8.0.1 that impacted cellular network connectivity and Touch ID on iPhone 6 and iPhone 6 Plus
      •  Fixes a bug so HealthKit apps can now be made available on the App Store
      •  Addresses an issue where 3rd party keyboards could become deselected when a user enters their passcode
      •  Fixes an issue that prevented some apps from accessing photos from the Photo Library
      •  Improves the reliability of the Reachability feature on iPhone 6 and iPhone 6 Plus
      •  Fixes an issue that could cause unexpected cellular data usage when receiving SMS/MMS messages
      •  Better support of Ask To Buy for Family Sharing for In-App Purchases
      •  Fixes an issue where ringtones were sometimes not restored from iCloud backups
      •  Fixes a bug that prevented uploading photos and videos from Safari
    For information on the security content of this update, please visit this website:
      http://support.apple.com/kb/HT1222

  • Problem in downlaod the certificate from portal

    Hi,
    I am new to iphone Please help me it's very urgent.
    I have create a new developer certificate and download it
    it works fine after that i have applied for distribution.
    when I have download this certificate but this certificate is invalid.
    I have revoked this certificate from portal and development also.
    when I have created the developer certificate again.
    downloaded it it is giving that it is not valid.
    when i have revoked the certificate from portal then in team section it is showing that it is revoked.but in certificate section it is showing issued
    and when i click on download or revoke it gives an error
    failed to download or revoked

    I'm having the same problem... A google search turned up another thread about it, but it appears too late to call anyone today, as support goes home at 5PM PST on Friday and doesn't come back until Monday.

  • Regarding extracting the images of the signatures from the signed pdf

    We are using a TOPAZ sig pad Model: T-LBK750SE-BHSB-R to sign pdf documents using acrobat plugin.
    The PDF has  more than one signature field to sign.
    All this happens in a web application that uses Javascript to submit the pdf.
    We also have a requirement to capture the signature as a image.
    However, the customers (one or more) will only sign the pdf  and so, we will somehow have to extract the images of the signatures from the signed pdf.
    Could you please let me know if this can be done using pdf apis (like IText etc) or some other server side APIs.

    If you set up standard password security so that form filling and signing existing digital signature fields is allowed, you should be OK.

  • Had a problem with newest update and the advice from turingtest2 resolved my problem just to say thanks! Had never used this route before so was less painful than thought it would be again thanks.

    Had a problem with newest update and the advice from turingtest2 resolved my problem just to say thanks! Had never used this route before so was less painful than thought it would be again thanks.

    how can i find out what the fix is that works..please

  • Reading/Writing the "wpproperty" from portal LDAP

    Hi,
    We want to read/write the "wpproperty" from portal LDAP. I found the code for EP60.
    IUser user = request.getUser();
    String itar[] = user.getAttribute("com.sap.security.core.usermanagement","wpproperty");
    newUser.setAttribute("com.sap.security.core.usermanagement",
    "wpproperty", value);
    Does anybody have an example for <b>EP50</b> code?
    Kind regards,
    Onno

    I think the answers you got over [url http://forum.java.sun.com/thread.jsp?thread=524137&forum=54]here were excellent. You should now know that Java is a terrible language for this kind of thing. You would be much better off with some kind of a native language like C++. Even then, you are going to have to get heavily into the internal Windows system to get what you want from another application and I can't even imagine what you would have to go through to get it out of IE.
    Anyway, I doubt you are going to find what you are looking for in the 'New To Java Technology' forum. You might be able to find something like this if you found a 'Hacker Forum' with people on it who had spent the time to find out how to steal information from other programs (probably at least a couple of years) and didn't mind if they got invovled with someone who might be talking to the FBI shortly.
    Your only other option would be to spend the year or two it would take you to learn enough to do it yourself.
    Good Luck.

  • User cannot receive the mail from portal

    Hi team
    One of the user is not receving mail in portal, when i check the status of the user is active and mail id is correct.
    Now my question is how to find the log from portal or we have to check from the R/3 end,
    since i am new to this portal administation please guide me. Your replies are very helpful.
    Regards
    Bhaskar.T

    Hi
    you can get the logs from /usr/sap/<SID>/j2ee/logs/defautltrace.trc, the file with the less size will be the latest one, alternatively you can monitor the the logs fron NWA,
    http://server.domain.name:50xx00/nwa ->monitoring ->Logs and traces.
    jo

  • I have asked this question before, and had a useful reply, but I have the same problem. I cannot unlock the screen from landscape

    How do I unlock the screen on my mini Ipad which is stuck on landscape? I have a green tick in 'lock rotation which I cannot remove. it asys 'use slide switch to ......., but where is the slide switch?

    What version of iOS do you have on your iPad (Settings > General > About > Version) ? Depending upon the version that you have you may have a Settings > General > Use Side Switch To setting on your iPad :
    In the above image the switch on the side of the iPad above the volume control will rotation lock - so putting that side switch 'on' on the side of your iPad will give you an image of 'rotation lock' in the middle of your iPad's screen for a second or so :
    and you should get a lock symbol at the top of the screen next to the battery indicator, and putting the switch 'off' will give an unlocked image in the middle of the screen :
    and the lock symbol will disappear from the top of the screen.
    If you have the 'mute' option ticked on the above image then you will get a bell icon with/without a line through indicating whether you've muted/unmuted notifications.
    As there is only one side switch and 2 things that it could control, the function that the switch isn't controlling (i.e. the unticked option in my first image on this reply) will be controlled (if your iPad is on iOS 5 or 6) via the left-hand end of the iPad's taskbar (double-click the home button to open the taskbar and the slide that taksbar to the right), or (if your iPad is on iOS 7) via Control Centre (swipe up from the bottom of the screen to open it)

  • Deleting albums and all images in the album from Library ?

    What's the best way to delete an album and all the images in that album?  I have a few dozen albums that were missing images and the best way to organize is probably to re-import all the images from dvd again. 

    To delete from an album depress the command and options keys and press delete
    all Shortcuts - http://www.apple.com/support/iphoto/shortcuts/
    LN

  • How to upload files/images to the database from a form.

    I'm making a custom user profile form.
    The users can update their profile in this form.
    I cannot use the standard profile form, because the customer got very specific
    demands about the context of the profile form.
    In this custom profile form the user must be able to upload an image
    from their hard disk(just like in the standard profile form).
    I've got the following questions about uploading pictures:
    - How do I make a button to show the explorer window.
    - how do I get the chooses file-name in a field.
    - how do I get the new file in the database.
    - how do I get rid of an old file in the database.
    - how do I get the image on the form.
    Or is there a special portal way to upload images/files in a form.
    Does anyone have a clue?
    regards
    arny

    Hi,
    Regular Portal forms will support upload of images/documents to the database. Just identify your column as a blob, and the 'Browse' button will automatically show up in the form and the users will get to choose the file they want to upload from their desktop.
    The thing is, I haven't been able to figure out how to get that document/image back out of the database (e.g. in a report), once it's put in. Maybe someone else can answer that.

Maybe you are looking for

  • SSO for Web applications

    Hi, I want to implement SSO between my portal and web applications. i found some documents but not sufficient information. what would be the correct source of information if i want to impalement SSO between Portal and Web server(non SAP). Any help is

  • Standby database is not Sync with primary DB

    Hi, One week back I configured standby database and It was running fine. But 2 days back(Saturday) somebody had down my standby database. Today when I mounted my database; I saw this is not sync with primary database. Database Name :- pcs Primary db_

  • Imp Changes are needed in Nokia Belle

    I am using Nokia E7 since last 10 months. Symbian Anna and Belle are released in between. I have seen lot of differences between Anna and Belle. The following differences are also compared with normal phones also. Here I have mainly focused on issues

  • Files in library but won't import to ipod

    I have @8200 songs in my itunes library. When I hooked up my new 60G ipod files transfered fine, although my ipod says I have 8194 songs, it is only using up 28G of space (it is using 42G in my library). I found out why. I went to play some songs on

  • Needing to color correct a bunch of blue clips!

    I recently did a shoot and the other shooter I hired gave me a bunch of blue video. What is the fastest way I can color correct those clips? I used a color corrector 3 way on those clips but it didn't really take the blue out. I then copied the setti