I have a problem to save an image with its URL. I once used URLWRITE function. it works well for most of image urls. However, for this one: http://www.freegreatpicture.com/files/157/1562-cute-little-cat.jpg , I cannot save this image to my disk using urlwrite(url, 'cat.jpg'); . Anyone can help ? Thanks !
PS. the saved image cannot be opened.
After I click the url, the image is as this:
Problem will be with that sites and the url forwarding due MVC i guess. If you click at your link, you dont get the exact image. You get the sites where you need to click at the download button and wait 10 or how much seconds. Probably if you get the IMAGE link.. you will have no problems. But you dont in here. Its not problem of your script or in urlwrite function it is "problem" (probably intention) of that sites
Related
This a first question for me. Hence I could not add a comment to the original.
I followed the solution and worked as expected.
However, when I tried to download 2 private videos that were part of the same post, only the 1st URL produced the correct video. The inspection of the 2nd URL, showed, as expected, that it is different from the 1st.
URL 1
URL 2
Although I do not think it makes a difference, I observed that the host name starting with "sc-content" or "video".
Any thoughts?
Thank you!
The answer to the original question described how you bring up the developer window, go to the network tab and observe the various URLs scrolling by as the video is playing. At some point you can copy one of the URLs from said window, strip out bytestart & byteend. This then constitutes the URL I mention.
I did find the answer to my own question after reading some the Graph API documentation on cookies. Thank you WhizKid!
If an FB post contains several videos, the steps below show how to download all videos using youtube-dl 2019.09.28:
press play on video #1
ctrl-right click and "Show Video URL"; select all & copy to text editor
go back to post
press play on video #2
ctrl-right click and "Show Video URL"; select all & copy to text editor
KEY: go back to post and reload page
within the terminal window, enter: "youtube-dl -u user -p pass URL#1" and/or URL#2
NB. Occasionally you may get "Something went wrong. We are having trouble playing this video". You can reload and carry on; it will eventually play and you can get the video URL as per above.
I don't manage to get the Image Tools plugin to actually upload the images to the server. I upload images with the jbimages plugin with no problem. But when a picture is edited with the Image Tools, although there's the uploading bar, which gets to 100%, it seems that it's only uploaded as a blob. The page calls the tinymce.activeEditor.uploadImages() function when submitting the form data, but it doesn't work.
I use the 'postacceptor.php' file from the example (defined in 'images_upload_url') and the 'images_upload_base_path' is defined as well.
The files are not uploaded to the server, and the img src remains a blob.
What could the problem be?
Thanks!
What debugging have you done in your PHP code? Is the code being triggered? Does the file appear in the posted content? You need to narrow down where in the process things are failing.
Is the issue that TinyMCE is not posting the edited image or is the issue that the image is posted and the PHP code is not properly saving the image and returning valid JSON?
How did you configure TinyMCE?
Does an edited image get posted to your server code?
What is in that form post?
If you disable the jbImages plugin does that change anything?
Without more details it will be very difficult to help you figure this out.
I am onto a photo project. Dynamically added a watermark in the large picture preview. But someone with general idea can manipulate the link and get the original picture. Disabling Right button seems to be useless. In this case what can be the appropriate solution?
Disable any access to original pictures. Make server script that receives picture's ID (or name) and sets watermark before picture will be shown. And make your application such way that this script only can access images by users. If manipulation with link allows users to have unauthorized access, then it looks like you have problems with architecture of project.
Am just beginning with joomla on a site that is already existing and was previously managed by someone else who is not available at the moment. I am trying to troubleshoot a problem why the website is displaying the header differently in different PCs but I am not being able to find the image of that header file. I tried to look for it under "site > media" but cannot find the image among the images in that area. I also tried to look for the path to the image through the template css and found this path ../images/logo.png which I believe must be the path to the header image but I honestly don't really know which path ../images/logo.png is but assuming it is the one under "media" then I still cannot find the image. Could you give me a clue on where the header image files could be found cause I've actually still failed? Or, could you make me understand this path ../images/logo.png or how to find an image on a joomla admin interface like say "logo.png". In fact I discover that on looking at the CSS for the template, the image paths found in it are not found in "Media"? Is there another path for the images in the template and how do I access them? I cannot FTP my host at the moment to view the physical files due to the long procedure needed so am hoping that there is a way to find it. I only have joomla admin access and nothing like Cpanel as yet. The joomla version of the site is 1.5.22 which I know is an old one but I plan to do first things first. Hope I've given enough infor.
Try using FireBug, or Chrome debugger - (press F12) and check "Click an element in the page to inspect" to see where the specific image is located exactly.
No matter what I try, the only way I can see any images in my UIWebView, is if I load a page using loadRequest. loadHTMLString will load everything except for images.
I have tried using all the online examples of setting the base url. Nothing seems to work. I've tried setting the base url to my bundle path, no local images display. I've tried setting the base url to http://www.google.com and pasting the google home page source into a test file, load it with loadHTMLString. The page shows up with no images.
What am I doing wrong?
I'd recommend taking a peek at this...
UIWebView links
Also you may notice that between the simulator and the real device files become case sensitive on the device... I'm not sure if UIWebView makes it case insensitive but thought it might be worth mentioning incase it gives any more food for thought.
If this doesn't work perhaps you can post your code snippet as this may help.