Hi all!
I want to deny my internet connection's download properties for all port.
I mean i want to make just upload. is it possible?
Thank you very much for your help, already now.
Is it possible to protect flv files from download? I'd like to protect my files from download but I don't have the money for a streaming server which I think provides some sort of protection. The files are streamed via PHP and are located in an upload folder on my server.
I've used PHP to ensure that only subscribers can view the video but I basically want to go a step further and prevent subscribers from, upon login, downloading my videos with downloaders such as Sothink Flv Downloader for Firefox.
i have an ASP web services to change byte array that given from the client and change it to a file and save it in the web server
the code is like this :
[WebMethod]
public string UploadFile(byte[] f, string fileName)
{
try
{
MemoryStream ms = new MemoryStream(f);
String path="/myfile/";
String location=HttpContext.Current.Server.MapPath(path);
FileStream fs = new FileStream(HttpContext.Current.Server.MapPath(path)+fileName, FileMode.Create);
ms.WriteTo(fs);
ms.Close();
fs.Close();
return "OK";
}
catch (Exception ex)
{
return ex.Message.ToString();
}
}
the web services need byte array and file name.. i build the client in php upload.php the code is
<html>
<body>
<form action="action1.php" method="post" enctype="multipart/form-data">
Pilih File Anda:
<input type="file" name="myfile" />
<input type="submit" value="Upload" />
</form>
</body>
<html>
and action1.php the code is:
<?php
require_once('nusoap.php');
$client = new nusoap_client('http://192.168.254.160/testuploadah/FileUploader.asmx?WSDL', 'wsdl','','', '', '');
$err = $client->getError();
if ($err) {
echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
}
if(is_uploaded_file($_FILES['myfile']['tmp_name'])){
$uploadFile = $_FILES['myfile'];
////how can read byte array of $uploadFile so i can send to web services???
////are php only can send array or string ?
$params[]->f=???????????????
$params[]->fileName=$_FILES['myfile']['name'];
$result = $client->call('UploadFile', $params,'', '', false, true);
if ($client->fault) {
echo '<h2>Fault</h2><pre>';
print_r($result);
echo '</pre>';
} else {
//Check for errors
$err = $client->getError();
if ($err) {
//// Display the error
echo '<h2>Error</h2><pre>' . $err . '</pre>';
} else {
//// Display the result
echo '<h2>Result</h2><pre>';
print_r($result);
echo '</pre>';
}
}
}
?>
how can i Send the byte array parameter to the web services,so the web services can started????
i still can resolve this problem,the web services always return an error because i can't send byte array
I'm using the hidden iframe method to submit a form with a file upload field. I want to display a message back on the page using javascript and I'm not sure how to do this. If this was just a form with text fields I'd do an AJAX post and respond with a message I'd display in my callback function. I'm just not sure how to accomplish this same task with the hidden iframe method since it is a standard form post.
Hello,
How to make some of article when i click readmore the paragraph not show
to the bottom but to the right side...
here's the illustration picture
http://www.oymo.com/upload/uploads/collumn-artikel.jpg
thanks
when i upload my project to google-app-engine , it show this :
Error: Server Error
The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this error message and the query that caused it.
why ?
how can i debug this error ?
thanks
Does anyone know of one? I need to test some upload/download scripts and need some really large files generated. I was going to integrate the test utility with my debug script.
Hello,
I have a section of code that uploads an image:
[activity startAnimating];
[self uploadImage:img Session_id:appDelegate.sessionID PlaceID:place.placeID Comment:comment.text];
[activity stopAnimating];
I am sure that activity is wired up correctly to a UIActivityViewIndicator, but it never shows. Inside the uploadImage function, I open a connection to the server and start the upload. Does anyone have an example or possible explanation as to why the activity view would not display?
We currently have an iPhone app and would like to build a mobile website that has similar functionalities so it is accessible on multiple types of handsets.
what programming language should we best use for this? our app would like to use geolocation, camera/photo upload and access to the phone's contacts.
hope you can help us out!
best,
Robbert
I tried putting this line but it doesn't work:
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
jQuery doesn't work in Greasemonkey at all. Is there other way to use jQuery in Greasemonkey?
--
For all the people who have the same problem, you must upload the file to greasespot then install it from there.
The Create New Script option wouldn't work!
I am trying to use objectiveflickr to upload an image to flickr from my iphone but for some reason it strips the EXIF info (i want the image geotagged), is there a way around this?
Hello.
I have a folder with lots of doc-documents and I need to upload their context into database. The problem is that some of them are password protected and I don't know the password. I would like to skip them but I don't know how to detect if password protection presents.
If someone helps I'll appriciate it greatly.
P.S. Programming language is C#.
Is it possible to pass a SESSION variable from am embedded IFRAME to the parent page?
Meaning:
<form>
<iframe>
upload image to fake AJAX.
With PHP, set $_SESSION to be the location of the temporary uploaded photo
</iframe>
<input type="submit" /> // will this form submit have the $_SESSION variable set from the IFRAME?
</form>
Hi, is there a way to use Grails in "exploded" mode on tomcat in order to make individual changes in a running application (like a gif) without having to regenerate the entire war and upload it ?
Something like adding an xml file in tomcat's conf/Catalina/localhost that points to an exploded grails application ?
Thanks in advance.
I had dynamically create one Flash Player cs2, i had upload into my site, no of url link i had provided on my aspx page, when any one of the url is clicked,that url based flv viedeo will play..!
In my case when i clicked url to play the video,player is loaded but is not visible, in the same window, but i had opened in new window in internetexploer it will playing..working fine?
What the problem in open the player in same window... any one pls help me..? Thanks
We are in the process of integrating ASP.NET Business App with Sharepoint. I have some Design questions.
Requirement - From ASP.NET buz application we upload document to Sharepoint Doc Lib 2010 using Web Services. And perform a Search using Serach web service. I would like to know from group are there any disadvantages doing this? Performance etc .. What kind of seacurity consideration i need to be thinking of.
I want to Upload large file on Sharepoint.So i am uploading it in chunks.
But i am unable to give meta information at the time of Uploading file.
Is there any solution?
I'm not a programmer, and/but after multiple email discussions and google searches confirmed the problem I'm describing, and after making changes in picasa preferences with no change in resolution loss (from say, 800kb original image to 235kb after export or upload), I'm at a dead end and thinking the answer may lie among you folks, even though I barely understand the language here.
I'm trying to install Agile Uploader, but keep running into an error code 2101 (no other message besides that.)
Any idea what error code "2101" means? Whenever I try to submit/upload (when I call agileUploaderSubmit()), nothing seems to happen and with Firebug mode on, all the log prints out is that code. I can't find anything that tells me what it means.
Thanks
I have a web application written in Java (Spring, Hibernate/JPA, Struts2) where users can upload images and store them in the file system. I would like to scale those images so that they are of a consistent size for display on the site. What libraries or built in functions will offer the best results? I will consider the following criteria in making my decision (in this order):
Free/Open Source (essential)
Easy to implement
Quality of results
Performance
Size of executable
I tried to upload files via FTP but ran into problems. Are modern day browsers no longer supporting FTP "write" capability? I managed to use Dreamweaver to FTP the files successfully.
ok im trying to upload this csv file onto my table in pgsql
but im getting this error
ERROR: invalid input syntax for integer: "mlname,mfname,slname,sfname,address,postalcode,membershiptype,hphone,email"
CONTEXT: COPY members2, line 1, column id: "mlname,mfname,slname,sfname,address,postalcode,membershiptype,hphone,email"
i really understand why im getting this error, both my table and my csv file have the same column names
Hi,
I'm running through the Ruby on Rails tutorial at http://guides.rubyonrails.org/getting_started.html (adjusting where appropriate for Google's App Engine). All is well up till section 6.3: when I try to click "New Post", I get the following error:
Internal Server Error (500)
Request Method: GET
Request URL: http://localhost:8080/500.html
access denied (java.io.FilePermission /dev/urandom read)
It works fine when I upload the application to Google's App Engine; it's just on my development machine (OS X 10.6) that it doesn't work.
Thanks in advance.
I have SharePoint state machine work flow(Visual Studio 2008) , in specific state i create task .
when user finish this task he can upload document as attachment for this task
then work flow goto another state
in second state i create new task for another user which will see the previous attachments of last task
and i try to see the properties of SPWorkflowTaskProperties to read attachment but i didn't find any thing
I am writing a test harness in python and as part of the testing I need to initialise an FTP server and upload various files. I am using ftplib and everything is working ok. The only problem I have is that I am seeing loads of FTP text appearing in the console window intermixed with my test results, which makes scanning the results quite tricky. I haven't found a way to shut ftp lib up and stop this happening, does anyone know how to stop this?