Ueditor upload images to local transformation to upload images to seven cow cloud storage

Source: Internet
Author: User

As a novice said more are tears Ah! I especially want to record the pit when I was a rookie. See if you will look at it and laugh.

Why change to cloud storage is not said. There are plenty of benefits.

The video tutorial on the use of another pat on the Cloud also mentions the seven cow cloud. I checked it myself. The cloud is a trial for 7 days. Seven Cow cloud is free of charge. It's okay to have a little bit of space for the study. It's all about learning to use it. I think it's a little bit of an episode in the middle. I like millet very much. Know that the Golden Hill also has a cloud. It's not bad. Free space is the same as the space after the seven-real-name authentication. No real-name authentication is needed. Seven real-name authentication of cattle if it's just a social security number, then you have to take a photo with your ID card. So I don't want to be certified. So why give up the golden cloud. But it doesn't give me the chance to use it. See

There is no SDK for. Net. So is that. NET Lost 55555555 ... (There is no expression in the blog Park). Because the novice is not able to develop the SDK according to the API ..... So I had to give up. I'll be back in the future. Write an SDK that kingsoft about. Net.

So I went to the arms of seven cows. But .... It's not so easy to use. I visit its web site to manage the contents of the card. is in contempt I am CRC network 555 ....

So the path of discovery began ....

As a novice to me. For the SDK help documentation for the seven KN. Some don't understand. After looking at it for a long while, looks like looking for something to see.

Let's talk about the downloaded SDK.

2.0?4.0, it's supposed to open 4.0.

I see test, I think it should be an example. however .... As a novice, I have no idea what to say in test. My imaginary example?

So I can only continue to read the document of the Web page ..... Watched for a long while finally determined the key point.

(In a word, the grass is hastily hastily and hastily hastily ...). It was not until I wrote this blog that I saw that I was wrong. I see this is the continuation of the above breakpoint method. Not that normal upload. But fortunately, it's not very good. But I really want to understand. When I changed the code. How do you feel the code so strange. A For loop ...

So I built a new project to do the test. As a small white (English also rotten) do not know what value bucketname should give. A space address was given at the beginning. Error .... Baidu's. Should be a space name.

Fortunately, there was nothing wrong with the test. It's just a little confusing to the key. This is the file name. But now I know why I called key.

Then my upload test was successful. Just follow the tutorial to continue the transformation. You need to create a folder for naming aspects. But the seven cows cannot be built. The structure of the seven cattle is key-value. To store the data. All the above filenames are called key.

Ueditor the images uploaded by the user as streams. However, seven of cattle can only be processed to it is the path. The flow cannot be processed directly. Maybe I didn't find it? For a flow that cannot be processed ... The transformation began.

At first, maybe the brain is missing a chord. Take it for granted that the stream is the same as the byte[]. Just do the replacement. So he failed. I think it's wrong. You should convert byte[] and stream.

When the project is actually in use. It's a mistake. Novice is always a variety of mistakes

Upload error. I can't see it. Debug? Debug no response. Error: The breakpoint has not yet been loaded for the document. Also for this problem Baidu for a half a day, then found that the startup project was wrong ...

Fortunately, there was log4net logging. And I can see the error from the log.

Also for this problem Baidu solved half a day, just resolved and error

This will be done. Debugging is still not found in the problem. Suddenly the brain is not configured with a problem. When the configuration knocked up, it was normal.

That would refer to the DLL as seen below with a xxx.dll.config.

I took it for granted .... This configuration is expected to be read. Just put 2 of them in the key. I wrote it here. So it went wrong. I again Baidu just know is not to read Xx.dll.config configuration file.

It's almost there. There's a small problem. The insertion path is preceded by a prefix. cause the picture to display an error

Just change the configuration.

Done!

When I finished, I was very excited. I really want to find someone to talk to. Share the next process. It was not so exciting when I was writing this blog. Some of the details are not so much to show.

The technology builds up slowly. Maybe later. It's going to be all right. No mistakes can be made. You may not be thrilled when you finish the project. Not as small as now, but also very excited after the solution.

Ueditor upload images to local transformation to upload images to seven cow cloud storage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.