Copy Datasources, transforamtions from ECQ800 to ECQ200
Hello All,
We have ECQ 200 and Copy Client ECQ 800. Initially BI System was connected with ECQ800 so all my data flow was in ECQ 800 which includes datasources in 7.x version, tranformations and infopackages.
Now the issue is our basis team is planning to deactivate the RFC for ECQ 800 and establish a new connectivity with ECQ 200.
How can I get the datasources in 7.x version, tranformations and infopackages from ECQ 800 to ECQ 200.
You need to copy logical system names from your previous source system to be able to stay in sync.
Re: bw system copy
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0384b7b-374b-2b10-c290-865f84b9bed2?quicklink=index&overridelayout=true
@AK
Similar Messages
-
How can I copy mp3 files from my Itunes library to an SD card for use in a non-apple phone?
How can I copy mp3 files from my Itunes library to an SD card for use in a non-apple phone? I can physically copy the tunes as mp3's but the phone does not seem to be able to play all of them. Do I need to copy an entire album or can I just pick & choose individual songs? The phone is question is an LG running who knows what for an operating system.
AAC is Advanced Audio Coding. Basically it's a format that sounds better than MP3 but doesn't take up as much space as a lossless format (like you'd have on a CD). More than likely you've had that encoding turned on when you ripped your music into itunes (it's the default encoder). Therefore your LG phone won't play them.
You need to turn off the AAC format by going to the iTunes menu, Preferences, General (at the top), then clicking the "Import Preferences" button. Change the AAC Encoder to MP3 Encoder. After that you'll have to make MP3 copies of your songs by right clicking them and selecting "Create MP3 Version." You'll get a copy of the song that should transfer to your SD card and have MP3 encoding. Hopefully your phone will play that. -
How do I move or copy a page from one pages doc to another?
I used to frequently move or copy a page from one multiple-page Pages document to another just but dragging and dropping the thumbnail. Since I upgraded I can't do this anymore. How can I do it now?
Rhosh18 wrote:
I used to frequently move or copy a page from one multiple-page Pages document to another just but dragging and dropping the thumbnail. Since I upgraded I can't do this anymore. How can I do it now?
It never worked that way in Pages '09. You have to copy and paste the Thumbnails.
That no longer works in Pages 5. Sounds like you are not copying and pasting content because that certainly works. Read what VikingOS wrote and do precisely what he said.
Peter -
Error while copying a page from one application to another application
Hi All
I am using Oracle Apex 4.0
I getting the error ORA-06502 Pl/Sql Numeric error character string buffer too small when i copying a page from one application to another application.
Thanks & Regards
Srikkanth.MI'm having the same issue. How did you solve this?
-
HP LaserJet MFP M476dw paper size mismatch when copying or scanning from ADF
We have HP Color LaserJet MFP M476dw that has an issue when copying or scanning from the ADF.
Put a single A4 sheet in the ADF and choose copy, with all settings correct & no resizing, and the output copy is moved down the page (increased top marging by a couple of inches).
My initial thoughts were a paper size issue (e.g. treating A4 as Letter or vice versa) but all settings look correct. I have even done a reset and started over and the problem remains.
If I take the original and place it on the flatbed and copy from there with all the same settings then it works fine.
There is a similar issue when scanning from the ADF. Again, scanning from the flatbed works fine.
I've tried all I can think of. Does anyone have any further suggestions? Could it be a fault in the ADF?
Here's the full device settings info:
Device Configuration
[Shop for Supplies][Support]
Product Information
Product Name:
HP Color LaserJet MFP M476dw
Formatter Number:
YF10C9X
Serial Number:
CNB7G2H6T9
Service ID:
24113
Firmware Datecode:
20131122
Disable Fax:
No
Telecom Version:
05-031-001
Location:
UK
ADF Installed:
Yes
Max Monochrome Print Quality:
600x8
Max Color Print Quality:
ImageREt 3600
Controller Number:
72
Duplexer Version:
0
Device Description:
HP Color LaserJet MFP M476dw
Language:
English
Default Settings:
Self-managed
Asset Number:
Your Company Name:
Contact Person:
Device Location:
Geo Location:
Product Security:
Off
Wired HW Address:
fc:15:b4:78:28:46
Wireless HW Address:
54:35:30:2f:d7:fc
Network In Use:
Wired
Host Name:
NPI782846
IPv4 Address:
192.168.9.18
IPv6 Address:
FE80::FE15:B4FF:FE78:2846
Total Memory:
256 MBytes
Available Memory:
117.7 MBytes
Installed Personalities and Options
PCL6
(20040201)
AirPrint
PCL
(20040201)
PDF
(20040201)
PS
(20040201)
USB Flash Drive:
Empty
Impressions
Total Impressions:
10684
Monochrome Impressions:
4799
Color Impressions:
5885
Total Equivalent Impressions (A4/Letter):
10684.0
Monochrome Equivalent Impressions (A4/Letter):
4799.0
Color Equivalent Impressions (A4/Letter):
5885.0
Duplex Sheets:
1223
Jam Events:
0
Mispick Events:
4
Photo Color Impressions:
0
Photo Monochrome Impressions:
0
USB Flash Drive Insertions:
0
Images Scanned to USB Flash Drive:
0
Copy Flatbed Images Scanned:
373
Copy ADF Images Scanned:
409
Copy Monochrome Impressions:
1122
Copy Color Impressions:
102
ADF Images Scanned to Host:
0
Flatbed Images Scanned to Host:
0
Images Scanned to E-mail:
0
Images Scanned to Network Folder:
0
Fax ADF Images Scanned:
23
Fax Flatbed Images Scanned:
1
Fax Impressions:
18
Images Sent from PC:
0
ADF Images Scanned:
1149
Flatbed Images Scanned:
779
Scanner Jam Events:
8
Paper Settings
Default Paper Size:
A4
Default Paper Type:
Plain
Tray 1 Size:
A4
Tray 1 Type:
Letterhead
Tray 2 Size:
A4
Tray 2 Type:
Plain
Paper Out Action:
Wait Forever
Manual Feed:
Off
Duplex:
Off
Bind:
Long Edge
Print
Auto Continue:
Off
Number of Copies:
1
Courier Font:
Regular
Orientation:
Portrait
Monochrome RET:
On
Wide A4:
No
Monochrome Resolution:
600
Monochrome Bits per Pixel:
8
Color Resolution:
600
Color Bits per Pixel:
32
IO Timeout:
120 Seconds
Jam Recovery:
Auto
Personality:
Auto
Print PS Errors:
Off
USB Flash Drive
Print Documents:
Number of Copies:
1
Paper Size:
A4
Paper Type:
Plain
Fit to Page:
On
Collation:
Off
Output Color:
Color
Print Photos:
Image Size:
10 x 15 cm
Paper Size:
A4
Paper Type:
Plain
Lighter/Darker:
<-----*----->
Number of Copies:
1
Output Color:
Color
Scan Settings:
Scan Resolution:
150
Scan File Type:
PDF
Scan Paper Size:
A4
Flatbed Scanner:
Single Page
Document Feeder:
1-Sided
File Name Prefix:
scan
Output Color:
Color
Copy
Optimize:
Auto Select
Lighter/Darker:
<-----*----->
Paper Size:
A4
Paper Type:
Plain
Collation:
On
Number of Copies:
1
Reduce/Enlarge:
Original=100%
Draft Mode:
Off
Tray Select:
Auto Select
Two-Sided:
1-Sided to 1-Sided
Multi-Page Copy:
Off
Fax
Your Company Name:
HP Fax
Answer Mode:
Automatic
Rings to Answer:
2
Distinctive Ring:
All Rings
Dial Prefix:
Off
Fax Resolution:
Fine
Lighter/Darker:
<-----*----->
Fit to Page:
On
Glass Size:
A4
Dialing Mode:
Tone
Redial if Busy:
On
Redial if No Answer:
Off
Redial if Comm. Error:
On
Detect Dial Tone:
Off
Billing Codes:
Off
Extension Phone:
On
Stamp Faxes:
Off
Private Receive:
Off
Confirm Fax Number:
Off
Allow Fax Reprint:
Yes
Print Duplex:
Off
Fax/Tel Ring Time:
20
Fax Speed:
Fast (V.34)
Error Correction:
On
Forward Fax:
Off
Block Junk Faxes:
Off
Phone Line Volume:
Medium
Alarm Volume:
Medium
Ring Volume:
Medium
Key-Press Volume:
Medium
Fax Confirmation:
Never
Fax Error Report:
Never
Include First Page:
On
Auto Log Print:
On
Print T.30 Trace:
Never
Paper Types
Plain:
Normal
HP Matte 90g:
Normal2
HP Matte 105g:
Heavy
HP Matte 120g:
Card stock
HP Matte 150g:
Extra Heavy
HP Matte 200g:
Extra Heavy
HP Glossy 120g:
Glossy
HP Glossy 150g:
Glossy
HP Tri Glossy 150g:
Glossy
HP Glossy 200g:
Heavy Glossy
Light 60-74g:
Light
HP EcoSMART Lite:
Extra Light
Intermediate:
Normal2
Mid-Weight 96-110g:
Heavy
Heavy 111-130g:
Card stock
Extra Heavy 131-175g:
Extra Heavy
Hvy Glossy 111-130g:
Light Glossy
X-Hvy Glossy 131-175g:
Glossy
Card Glossy 176-220g:
Heavy Glossy
Color Transparency:
Transparency
Labels:
Label
Letterhead:
Normal
Envelope:
Envelope
Heavy Envelope:
Heavy Envelope
Preprinted:
Normal
Prepunched:
Normal
Colored:
Normal
Bond:
Heavy
Recycled:
Normal
Rough:
Heavy
Heavy Rough:
Heavy
HP Tough Paper:
Tough Paper
Opaque Film:
Tough Paper
Energy Settings
Sleep/Auto Off After:
30 Minutes
Wake on These Events
USB Job
Yes
LAN Job
Yes
Wireless Job
Yes
Control Panel
Yes
Fax Ring
Yes
Shut Down After:
Never
LaserJet Updates Settings
Check Automatically
Yes
Prompt Before Install
Yes
Allow Downgrade
Yes
Allow Updates
Yes
Miscellaneous
Extended print modes modified:
No
Very Low Setting (Black Cartridge):
Prompt
Very Low Setting (Color Cartridges):
Prompt
Low Threshold (Black Cartridge):
5%
Low Threshold (Cyan Cartridge):
3%
Low Threshold (Magenta Cartridge):
3%
Low Threshold (Yellow Cartridge):
3%
Store Usage Data:
On Supplies
USB Connection:
No
Font Source:
I (Internal)
Font Number:
23
Font Pitch:
10.00
Font Point Size:
12.00
Symbol Set:
PC-8
Form Length:
64 Lines
Append CR to LF:
NoTo get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this at Commercial Forums.
I hope this helps!
R a i n b o w 7000I work on behalf of HP
Click the “Kudos Thumbs Up" at the bottom of this post to say
“Thanks” for helping!
Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution! -
Can not copy a URL from the address bar/line
Why is it proving so difficult for me to copy a URL from the address bar using Safari? When I click on the link I want to copy, it does not highlight. I have used Command L and Command C, and that works but there has to be a simpler way. I also read that if I click the address bar once, then press the control key and click on it again that a menu would appear with cut, paste, copy. That does happen, but all options are greyed out, and not selectable. Another google search resulted in someone saying there was a button or arrow to click on and that this tool would copy the URL.
The URL I am copying is very long, longer that the address bar window
What Gives Here?Click the icon (favicon) to the left of the URL.
That will select the entire URL.
Command C will copy the URL. -
Copy line items from Master Agreement to SubAgreement
Dear all,
As a requirement, we need to create a dummy line item at master agreement and subagreement level to be able to publish them to ERP without need
to complete line items (they are completed in ERP via a development).
We have created master agreement templates with a dummy line item but at subagreement level, templates are not available.
What we are trying to develop is a script on post_create at agreement level to copy line items from Master Agreement to SubAgreement. We are able to get Master Agreement line items and copy them to the SubAgreement, but the subagreement is not created. This is the code we are using:
import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeIfc;
import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanIfc;
import com.sap.odp.api.doccommon.masterdata.ValueListTypeIBeanHomeIfc;
import com.sap.odp.api.doccommon.masterdata.ValueListTypeIBeanIfc;
import com.sap.eso.api.contracts.ContractIBeanHomeIfc;
Mst_agreementBean = doc.getParentIBean();
lineItemCollectionSub = doc.getLineItems();
lineItemCollection = Mst_agreementBean.getLineItems();
collectionsize = lineItemCollection.size();
colln = Mst_agreementBean.getCollectionMetadata("MA_LINEITEMS").get(Mst_agreementBean);
colln2 = doc.getCollectionMetadata("MA_LINEITEMS").get(doc)
newProject = Mst_agreementBean.getIBeanHomeIfc().createFromAnother(Mst_agreementBean);
newMember = colln.get(1);
// Get Values Line Item
assCat = newMember.getAcctAssignCategory();
actLimP = newMember.getActualLimitPercent();
delAdCity = newMember.getDeliveryAddressCity();
delAdCount = newMember.getDeliveryAddressCountryRef();
delAdDist = newMember.getDeliveryAddressDistrict();
//... (all fields included in the script)
// Create Line
newMember2 = newMember;
AgreementHome = IBeanHomeLocator.lookup(session, doc.getObjectReference());
AgreementHome.upgradeToEdit(doc);
// Set Values
newMember2.setAcctAssignCategory(assCat);
newMember2.setActualLimitPercent(actLimP);
newMember2.setDeliveryAddressCity(delAdCity);
newMember2.setDeliveryAddressCountryRef(delAdCount);
newMember2.setDeliveryAddressDistrict(delAdDist);
//... (all fields included in the script)
try{
colln2.add(newMember2);
AgreementHome.save(doc);
AgreementHome.downgradeToView(doc);
collectionbean = colln2.get(0);
logInfo("Value of collectionbeanSub " + collectionbean );
}catch (ApplicationException e){
logInfo("Error " + e.getClass() + ". " + e.getMessage());
When we try to create an Agreement under a Master Agreement (clicking Add on Agreement tab), following error message is shown related to the line in blue:
Facility=local4;sessionid=4e73bb8e73304d6284816f93f4e04522a7c387b; tenantid=#tenant.ecb#;username=LUGUELL; exception=Sourced file: inline evaluation of: ``// ** import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : Method Invocation AgreementHome.save : at Line: 164 : in file: inline evaluation of: ``// ** import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : AgreementHome .save ( doc )
Target exception: java.lang.NullPointerException: while trying to invoke the method com.sap.eso.contracts.ContractTypeBo.getVendorVisible()
of a null object returned from com.sap.eso.contracts.ContractCommonBo.getTypeBo()
;stacktrace=Sourced file: inline evaluation of: ``// *JLA* import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : Method Invocation AgreementHome.save : at Line: 164 : in file: inline evaluation of: ``// *JLA* import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : AgreementHome .save ( doc )
Target exception: java.lang.NullPointerException: while trying to invoke the method com.sap.eso.contracts.ContractTypeBo.getVendorVisible()
of a null object returned from com.sap.eso.contracts.ContractCommonBo.getTypeBo()
Any ideas what is causing the error? What are we missing on our code to copy line items?
Many thanks,
Marc Romagosa
Message was edited by: Marc Romagosa de RibaWe managed to create a line item at VALIDATE script, but not at POST_CREATE. Either it is a bug or it is not possible at POST_CREATE script.
-
How to call COPY web service from sharepoint in SAP
Hello Experts,
I want to call COPY web service from SharePoint in SAP web dynpro / JAVA application.
However, when I try to connect to web service and download wsdl using http:// <hostname:port>/_vti_bin/copy.asmx?wsdl
it results in Unauthorized error and doesnt complete the setup. Detail error is :
Error occurred while downloading WSIL file. Error message: Deserializing xml stream http:// <hostname:port>/_vti_bin/copy.asmx?wsdl
failed.com.sap.engine.services.webservices.espbase.wsdl.exceptions.WSDLException: Invalid Response Code: (401) Unauthorized. The requested URL was:"Connect to
http:// <hostname:port>/_vti_bin/copy.asmx?wsdl , used user to connect: userid"
I am trying to connect with server user account. Any idea on what authorizations might be required or any help on the scenario .
-AbhijeetHere's an example on how to delete a list item, hopefully this helps
package com.jw.sharepoint.examples;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Properties;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import com.microsoft.sharepoint.webservices.CopySoap;
import com.microsoft.sharepoint.webservices.GetListItems;
import com.microsoft.sharepoint.webservices.GetListItemsResponse;
import com.microsoft.sharepoint.webservices.ListsSoap;
import com.microsoft.sharepoint.webservices.UpdateListItems.Updates;
import com.microsoft.sharepoint.webservices.UpdateListItemsResponse.UpdateListItemsResult;
public class SharePointDeleteListItemExample extends SharePointBaseExample {
private String delete = null;
private String deleteListItemQuery = null;
private String queryOptions = null;
private static final Log logger = LogFactory.getLog(SharePointUploadDocumentExample.class);
private static Properties properties = new Properties();
public Properties getProperties() {
return properties;
* @param args
public static void main(String[] args) {
logger.debug("main...");
SharePointDeleteListItemExample example = new SharePointDeleteListItemExample();
try {
example.initialize();
CopySoap cp = example.getCopySoap();
example.uploadDocument(cp, properties.getProperty("copy.sourceFile"));
ListsSoap ls = example.getListsSoap();
example.executeQueryAndDelete(ls);
} catch (Exception ex) {
logger.error("Error caught in main: ", ex);
public void executeQueryAndDelete(ListsSoap ls) throws Exception {
Date today = Calendar.getInstance().getTime();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
String formattedDate = simpleDateFormat.format(today);
String queryFormatted = String.format(deleteListItemQuery,formattedDate);
GetListItems.QueryOptions msQueryOptions = new GetListItems.QueryOptions();
GetListItems.Query msQuery = new GetListItems.Query();
msQuery.getContent().add(createSharePointCAMLNode(queryFormatted));
msQueryOptions.getContent().add(createSharePointCAMLNode(this.queryOptions));
GetListItemsResponse.GetListItemsResult result = ls.getListItems(
properties.getProperty("folder"), "", msQuery, null, "",
msQueryOptions, "");
writeResult(result.getContent().get(0), System.out);
Element element = (Element) result.getContent().get(0);
NodeList nl = element.getElementsByTagName("z:row");
for (int i = 0; i < nl.getLength(); i++) {
Node node = nl.item(i);
String id = node.getAttributes().getNamedItem("ows_ID").getNodeValue();
String fileRefRelativePath = node.getAttributes().getNamedItem("ows_FileRef").getNodeValue();
logger.debug("id: " + id);
logger.debug("fileRefRelativePath: " + fileRefRelativePath);
String fileRef = properties.getProperty("delete.FileRef.base") + fileRefRelativePath.split("#")[1];
logger.debug("fileRef: " + fileRef);
deleteListItem(ls, properties.getProperty("folder"), id, fileRef);
public void deleteListItem(ListsSoap ls, String listName, String listId, String fileRef) throws Exception {
String deleteFormatted = String.format(delete, listId, fileRef);
Updates u = new Updates();
u.getContent().add(createSharePointCAMLNode(deleteFormatted));
UpdateListItemsResult ret = ls.updateListItems(listName, u);
writeResult(ret.getContent().get(0), System.out);
public void initialize() throws Exception {
logger.info("initialize()...");
properties.load(getClass().getResourceAsStream("/SharePointDeleteListItemExample.properties"));
super.initialize();
this.delete = new String(readAll(new File(this.getClass().getResource("/Delete.xml").toURI())));
this.deleteListItemQuery = new String(readAll(new File(this.getClass().getResource("/DeleteListItemQuery.xml").toURI())));
this.queryOptions = new String(readAll(new File(this.getClass().getResource("/QueryOptions.xml").toURI())));
Brandon James SharePoint Developer/Administrator -
How do I copy and paste from one page or file to another page or file - on the same screen?
How do I copy and paste from one page or file to another - on the same screen?
Open both of your images in the Editor. Click on the image you want to copy and press Ctrtl+A (select all) followed by Ctrl+C (copy) then click the tab for your other image and press Ctrl+V (paste)
Alternatively click on your background image then simply drag the second image from the photo/project bin and drop it into the main editor workspace on top of the background image. Use the move tool to position and the corner handles of the bounding box to scale. -
Copy selected values from a table control into another table control
hi there,
as seen in the subject i need to copy selected values from a table control into another table control in the same screen. as i dont know much about table controls i made 2 table controls with the wizard and started to change the code... right now im totally messed up. nothing works anymore and i don't know where to start over.
i looked up the forums and google, but there is nothing to help me with this problem (or i suck in searching the internet for solutions)
i have 2 buttons. one to push the selected data from the top table control into the bottom tc and the other button is to push selected data from the bottom tc into the top tc. does somebody has a sample code to do this?you're funny
i still don't get it... can't believe, there is no tutorial or sample code around how to copy multiple selected rows from a tc.
here's my code, maybe you can tell me exactly were i have to change it:
tc1 = upper table control
tc2 = lower table control
SCREEN 0100:
PROCESS BEFORE OUTPUT.
MODULE status_0100.
MODULE get_nfo. --> gets data from the dictionary table
MODULE tc1_change_tc_attr.
LOOP AT it_roles_tc1
INTO wa_roles_tc1
WITH CONTROL tc1
CURSOR tc1-current_line.
ENDLOOP.
MODULE tc2_change_tc_attr.
LOOP AT it_roles_tc2
INTO wa_roles_tc2l
WITH CONTROL tc2
CURSOR tc2-current_line.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT it_roles_tc1.
CHAIN.
FIELD wa_roles_tc1-agr_name.
FIELD wa_roles_tc1-text.
ENDCHAIN.
FIELD wa_roles_tc1-mark
MODULE tc1_mark ON REQUEST.
ENDLOOP.
LOOP AT it_roles_tc2.
CHAIN.
FIELD wa_roles_tc2-agr_name.
FIELD wa_roles_tc2-text.
ENDCHAIN.
FIELD wa_roles_tc2-mark
MODULE tc2_mark ON REQUEST.
ENDLOOP.
MODULE ok_code.
MODULE user_command_0100.
INCLUDE PAI:
MODULE tc1_mark INPUT.
IF tc1-line_sel_mode = 2
AND wa_roles_tc1-mark = 'X'.
LOOP AT it_roles_tc1 INTO g_tc1_wa2
WHERE mark = 'X'. -
> big problem here is, that no entry has an 'X' there
g_tc1_wa2-mark = ''.
MODIFY it_roles_tc1
FROM g_tc1_wa2
TRANSPORTING mark.
ENDLOOP.
ENDIF.
MODIFY it_roles_tc1
FROM wa_roles_tc1
INDEX tc1-current_line
TRANSPORTING mark.
ENDMODULE. "TC1_MARK INPUT
MODULE tc2_mark INPUT.
IF tc2-line_sel_mode = 2
AND wa_roles_tc2-mark = 'X'.
LOOP AT it_roles_tc2 INTO g_tc2_wa2
WHERE mark = 'X'. -
> same here, it doesn't gets any data
g_tc2_wa2-mark = ''.
MODIFY it_roles_tc2
FROM g_tc2_wa2
TRANSPORTING mark.
ENDLOOP.
ENDIF.
MODIFY it_roles_tc2
FROM wa_roles_tc2
INDEX tc2-current_line
TRANSPORTING mark.
ENDMODULE.
thx for anybody who can help with this! -
Need to copy .txt file from FTP server and downloaded on local server directory.
I need to figure out a way to copy .txt file from ftp server in local server directory using sql jobs.
Below links will help achieving it:
https://www.virtualobjectives.com.au/sqlserver/ftp_scripts.htm
http://www.mssqltips.com/sqlservertip/2884/sql-server-integration-services-ssis-ftp-task-for-data-exchange/ -
Copy a file from URL to local HDD
Hi,
I've got 2 problems:
1. I'm an absolute beginner and an german-speaking user of this forum
2. I want to copy a file from within a signed applet (with full access permissions) from a URL on the server to a local directory on the client. It works with .txt or .ini files, but not with .dll or .exe. The .exe file has only 1KB instead of the 5MB and contains only something like "-1". Help!!
Here's what i made:
URL updateurl = new URL(getCodeBase() + "testfile.exe");
InputStream in = updateurl.openStream();
FileOutputStream out = new FileOutputStream("C:\\temp\\testfile.exe");
byte[] buf = new byte[4096];
int len;
while ((len = in.read(buf)) > 0)
out.write(buf, 0, len);
out.close();
in.close();
Thanks for any help!
cmon42From looking at the code I can't see any blatant errors.
The only thing I can think of, is: is your code wrapped by a try/catch block which you are ignoring?
The reason I ask, is that maybe you are not downloading the file you intended in the first place. The reason I think this is because of the line:
URL updateurl = new URL(getCodeBase() + "testfile.exe");Shoudn't there be a separator between getCodeBase() and testfile.exe? Only a guess, since getCodeBase may already return the separator.
HTH,
Manuel Amago. -
Copy a file from hard disk to a jar
Is there any way to copy a file from hard disk to a jar file?
hajani wrote:
No, I want to copy a file into an other jar file (like a zip or a rar file)
Edited by: hajani on Dec 7, 2008 4:11 AMIf you really do mean 'jar' file an not 'zip' or 'rar' then you can use class java.util.jar.JarFile and write your own code. If you don't feel like writing a load of code then and you can guarantee that the 'jar' executable is going to be available then you could use Runtime.exec() or it's cousin ProcessBuilder. If you mean a 'zip' file then you could use class java.util.zip.ZipFile and write a load of code. If you mean a 'rar' file then you will either have to find a 'rar' class library or again use Runtime.exec(). -
Copying a file from Cd/Dvd to MacBookPro?!
Hi,
I have got a MacBook Pro 2.33 and when I try to copy a file from cd or dvd ( let's say a movie about 700Mb) it takes about 20 minutes!! and furher if I try to open an app. during the copy it jump for a long time in the dock and when finally the app. appears it works very very slow. It's normal such behavoir or I have got some problems with my Mac?
ThanksThat is not normal. It is a multithreading operating system. Sounds like either your hard drive is overfull, or your RAM might be bad, or the Spotlight index hasn't completed, or you have too many active widgets, the directory is damaged, a bad peripheral needs an updated driver, or if you migrated from a PowerPC Mac to an Intel Mac you used Migration Assistant. The latter is not recommended because old PowerPC drivers and plugins can slow down your system. This is how I'd migrate from PowerPC to Intel:
http://discussions.apple.com/thread.jspa?threadID=435350&tstart=0
Let us know which of these seems to be affecting you. If you need help isolating the particular cause, also please let us know which cause you want to isolate. -
After copying a file from NTFS to HFS volume, file size changed when viewing in Windows
Hi guys,
I have a Mac Air running Mavericks on a HFS partition and Windows 7 on a BOOTCAMP NTFS partition. I have some files that I want to read/write from/to both systems. Since OS X can't write NTFS and Windows can't write HFS either, and I don't want to use any 3rd-party tools/drivers, I have to adopt a "stupid" way: in OS X, I copy those files from NTFS to its HFS partition, make changes, then switch to Windows and sync them back to NTFS.
The problem is, after I copied a file from NTFS to HFS in OS X, it seemed ok. But when I switched to Windows, the very copied file in HFS partition had its size changed (bigger) although I didn't make any changes to it in OS X yet. This happens to almost every file I copied, text and binary. For those text files, I tried to open it with EditPlus in Windows and EditPlus reports the correct size on the status bar.
How could this happen?I am not sure if this is what your seeing but...
The same unaltered file on two different volumes might use different amounts of disk space. This is because a 'disk' is divided in to 'blocks' and a block (also historically known as a 'sector') is a certain minimum size. So if disk-1 has a block size of 512 bytes and disk-2 has a block size of 1024 bytes then a file containing just 10 bytes will use up twice as much space on disk-2 as disk-1 even though it is the exact same file.
Beyond that, Macs can add additional information like Spotlight tags, labels, icons, etc. which make a file bigger. If you are modifying a file then presumably that also implies adding additional content e.g. for a Word document more text and this will make it bigger. Also depending on some programs are configured or designed 'deleting' text may only mark it as deleted and not really delete. This can apply to older versions of Word which has a 'Fast Save' feature, new versions have removed this and do a proper delete.
You would have to give more details like what you are doing to the document, what kind of document, and what the two sizes are.
Finally, there is one other potential difference, some systems and manufacturers use 1024 as a unit for measuring file and disk sizes, some use 1000. It will be the same number of bytes in each case but 1000 bytes in one case would exactly equal 1MB, and in the other it would be 0.9765MB.
Maybe you are looking for
-
I am unable to update my Creative Cloud.
The Creative Cloud Icon is gray and the Adobe Updater pulls up an empty Creative Cloud list. Please help!
-
Why is bonjour not working with my mac computer and hp printer?
Why is bonjour printing with my hp printer not working? I have a mac hooked up to an hp printer. i installed bonjour on my windows 7 laptop and it was able to install this printer via bonjour. yet when i click print on my laptop, nothing happens. on
-
Hi, I need to pass a parameter for one lov and am trying to pass with the code: In the page that calls the Lov step (vinculo = 1) <bc4j:messageLovField name="CodPessoaAluno" attrName="CodPessoaAluno" columns="10" required="yes" message="Informe o Nom
-
Hello Gurus, I change(planning delivery time) in material master data(MRP 2 view) using MM02 and run MRP using MD03. Now i check MD04,data is being changed here in MD04. same process(changing planning delivery time) is done using ME32l, now i do MD03
-
My Invoice no(VF01) will same as Excise invoice(j1iin)
Hi, Experts want same number of Excise invoice(J1IIN) as well as invoice(VF01) My configuration is at the time of saving the invoice through (VF01) Excise invoice should be automatically generated. for that how to mantain my number range of INVOICE