Quantcast
Channel: SCN : Blog List - ABAP Development
Viewing all articles
Browse latest Browse all 943

how do you usually upload picture in SCN? A workaround for current SCN upload issue

$
0
0

Hello friends,

recently there is a known issue in SCN  that you cannot upload pictures in your local laptops when you write blogs.( The insert image button is disabled ) 
Currently the SCN guys are investigating on this issue.

http://farm4.staticflickr.com/3714/11186669724_827e399dde_o.png

 

So I have to insert the picture from the web.

http://farm4.staticflickr.com/3825/11186625575_c60730fb4f_o.png

 

I have to upload the pictures to http://www.flickr.com and paste the picture url to SCN blog.

Unfortunately in flickr website, we can only obtain url like http://www.flickr.com/photos/53067560@N00/2658147888/in/set-72157606175084388/. Once opended, you will find the url contains both the content of uploaded picture itself and the frame of flickr website. Such url could not be used in SCN.

If we right click on the uploaded picture, we can see see a couple of picture size choices. Clicking on "Original" means we would like to view the picture with original size.

http://farm8.staticflickr.com/7398/11186669604_170270d4b0_o.png

 

on the new window, right click on picture and choose menu item "Properties", then you can get the static url, which could be used in SCN blog.

http://farm4.staticflickr.com/3794/11186669214_2b46d711d2_o.png

If you have lots of picture to upload this inefficient operations will make you mad. So finally I write a small tool to do url conversion automatically.
It is written in JAVA but could easily be rewritten in ABAP.

Firstly parte all uploaded picture url into a text file in your laptop like below:

http://farm6.staticflickr.com/5525/11186672226_7aee893efd_o.png

 

http://farm6.staticflickr.com/5500/11186625055_54b7989b09_o.png

 

import attached java file into your Eclipse and execute it, it will convert the url for you:

http://farm4.staticflickr.com/3735/11186779023_7936503806_o.png

You need to create an application in flickr website and then you can get your own application key.

 

http://farm4.staticflickr.com/3733/11186669024_4b54d5b925_o.png

Just fill the application key in JAVA class URLFetcher and that's all.

http://farm3.staticflickr.com/2872/11186624915_c57aca8e21_o.png

Still I feel it is not convenient compared to local picture uploading. What is your favourite way to upload picture when you write blog?


Viewing all articles
Browse latest Browse all 943

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>