Coldfusion & Amazon S3 integration

Today all companies moves their data to the cloud, you can use cloud for many purposes such is as data storage, remote machines, servers different types of network etc.

 

The common way today is use cloud as data storage, there are many options and different service providers for cloud data storage.

One of many providers and probably the most popular is Amazon and their Amazon S3 service (Amazon Simple Storage Service) which is storage for the internet.

amazon-web-services
amazon-web-services

Amazon S3 have simple web interface and we can use is to download or upload any amount of data, except web interface we can use this service as application programming interface (API) and intergrate this service in our own applications.

 

Using Amazon S3 in our applications is easy but it gives new dimension to our apps, integration can be done in many different ways, for the most popular programming languages today (Java, PHP, Paython, Ruby, .Net) it is straightforward because there are SDKs and libraries that enables us this service usage.

 

For other programming languses we can use Amazon S3 by making requests using REST API, this way also is not complicated and can be used in almost all programming languages.

 

But what if your company uses Coldfusion programming languages for app development, many of you did not heard about this programming language but in my company it is primarily used for development.

Cold-Fusion
Cold-Fusion

So one day I had task to integrate Amazon S3 in Coldfusion app, I tought it could be complicated because this programming language is not so popular and probably there is no any easiest way to do this except standard way of making web requests and using REST API.

 

The task was about copying some files from server to the Amazon S3, copying files on same server is very easy and there is FileCopy function for this purpose, usage this coldfusion function is simple, for example if we want copy some txt file from one location to another, in coldfusion this will be done in following way:

FileCopy(”C:/Folder1/example.txt”, ”C:/Folder2/example.txt”);

First parameter of the function is source path and second is destination path. This code will copy example.txt file from Folder1 to the Folder2 on the coldfusion server, this was very easy, but how to copy exmple.txt from Folder1 to the Amazon S3, how code should look like?

 

Answer is the same, we can use same function for copying files from coldfusion server to the Amazon S3 and vice versa, difference will be only in destination path, this is example:

FileCopy(”C:/Folder1/example.txt”, “s3://AccessKey+SecretKey@bucket/example.txt”);

As we can see, we can use same coldfusion function for copyiing files without difference if we are copying on server hard drive or on Amazon S3, this is possible because coldfusion have support for Amazon S3 service (available from ColdFusion 9.0.1).

 

In the exaple above we can see that difference is only in destination path, destination path contains some values that are specific only for copying to the Amazon S3:

  • AccessKey – value is used for authentification on S3 service, need to be added in predifined position in destination path
  • SecretKey – value is used for authentification on S3 service, need to be added in predifined position in destination path
  • Bucket – value is used as path on amazon server, it can contains amazon bucket name and folders and subfolders to the end file destination

When copying files from Amazon S3 to the coldfusion server same logic is applicable, only source and destination address need to be configured.

 

In the example described above we can see that Amazon S3 integration with coldfusion applications is very easy and simple, in this way our applications can be better and clients happier.

 

 

Adna Lakisic | September 15, 2016

Leave a Reply

CONTACT USCONTACT US

grow your business today

Contact Name (required)

Organization Name (required)

What Are Your Interests/Needs

Web site(required)

E-mail (required)

Your Message

Our ServicesOur Services

WHAT WE CAN DO

Social Media Strategy

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

Content Strategy

Many organizations feel the need to  implement an editorial calendar to fill a content quota, but we recognize that without a strong content strategy this can be an incredibly wasteful investment.

 Content Writing

The content on your site tells your visitors who you are, encourages them to dig into your site .This content will be largely responsible for helping to attract visitors to your site.

Web Design & Development

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

Search Engine Optimization

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

WordPress Experts

We can create a beautiful, easy-to-use, custom site, or we can help you transfer your existing site to the best CMS on the Internet.

Our website design services are used by brands who are in need of a facelift. We design beautiful websites at affordable rates. Not only do the websites we develop look absolutely amazing, but we design them with your marketing goals in mind. High performing websites are focused on user experience, responsiveness across all devices, and clear call-to-actions to funnel traffic to your contact form or product page.

social ads guru digital marketin responsive design
Social Ads Guru Responsive Design

Our team firmly believes it is important to share what you know and to help others. We consult, hold workshops, speak at events, and offer IT support so we can to help spread some goodness in the world.

Our social media management services are designed to grow your brand’s online presence. We help your brand establish trust and build relationships with potential buyers. The benefits of using our social media management services consist of increased awareness, website traffic and lead generation. Additional benefits include influenced Google rankings, blog promotions, reputation management, and customer service to current and potential customers.

Web presence

We analyze yous business web page element as well as ranking on google.

Code Quality

We analyze your business web page code quality according to W3C standards.

Social Media Presence

We analyze social media presence and competitor using social data.

Social Ads Guru Analytics

SEO

We use web page analyzer for seo.

Brand Identity

We do brand identity analysis.

Google Trends

We use google trend facility based on Google search to show how often a particular search-term is entered .

Blog Blog

GURU DIARY
Why you should upgrade your Drupal to 8.8.0? – Open Source CMS New Releases

Drupal 8.8.0 — the last normal feature release of Drupal 8 — is now available for download. Some of the updates in this release include:

Stable Media Library:

The media library allows reuse of images, documents, videos and other digital assets across the website. The media library was previously a beta experimental module.

Media Library, experimental since Drupal 8.6.0, is a stable core module in Drupal 8.8.0. It does three main things:

  • Enhances the administrative media list page with a visual grid display of media thumbnails.
  • Allows users to select media for use in a field, or in a text editor, via a gorgeous, intuitive modal UI.
  • Enables authors to embed media items into text content, via the aforementioned gorgeous UI.

Experimental Administration Theme:

MOPRO CONTENT MANAGEMENT SYSTEM OVERVIEW

MoPro is a company Based in the USA, California and they offer services that include design, development and hosting your website. Not long time ago I had the chance to support on of sites hosted by MoPro on their servers and managed by their CMS.

Drupal 8 is out and it represents powerful new suite of tools
drupal-8-released
Drupal 8 represent powerful new suite of tools and the strongest link in content supply chain.

Drupal is an “out of the box” web content management tool and it represent high customizing platform – which help you build the right tool to serve your content management strategy.

Popular Travel #hashtags on Instagram

We are all curious about where other people are traveling and what are they researching and looking for on Social Media networks.

POPULAR-TRAVEL-HASHTAGS-min

Instagram rolls out its Live video feature in the U.S.

Instagram live video

Instagram’s latest features focus more on live streaming and less on photo sharing. On Monday, Instagram started rolling out its “Live” video-streaming feature to iOS and Android users in the U.S. The company first unveiled this feature in November, as a way to “connect with your friends and followers right now.” You will also be able to find popular Live videos in the Explore page. According to Instagram, Live will be available to everyone in the next few days.

Man Devotes His Life To Adopting Old Dogs Who Can’t Find Forever Homes

man-adopts-senior-dogs-shelter-steve-greig-51

Months kept passing after Steve Greig’s beloved dog died, but he still felt crushed. That’s when he decided he should give another dog a good life. But not just any dog. He went to his local shelter in Denver, Colorado to adopt the “least adoptable” senior dog, as these are the ones too often overlooked.

How to use Halloween marketing ideas for small business?

Halloween offers a unique opportunity for businesses to launch some fun and interesting marketing campaigns. This trend has expanded from USA to the whole world and each year we have the opportunity to catch some interesting ideas for promotion businesses.

Most interesting Tweets about Trump and power of hashtags

The campaign for United States presidential election of 2016 is in full swing and the elections are scheduled for Tuesday, November 8, 2016. These will be the 58th quadrennial U.S. presidential election.

Quick way to determine SoC’s GPU performance

 

Despite a common approach to employ usage of comprehensive benchmarks to determine performance of different hardware components of processing units, this if often not a great idea, mainly due to general limitations mentioned in my earlier blog post.

An alternative way to quickly predict the potential and a likely performance of a given GPU under stress in terms of its limits is to observe its raw „GFLOPs score. Although it isn’t a definite case, it is quite much a great predictor and it is definitely a great way to scope the potential of any given GPU.

What is Drupal and why should we use it?

drupal-8-released

Features of Drupal.

Drupal is number one platform for web content management among global enterprises, governments, higher education institutions, and NGOs. Flexible and highly scalable, Drupal publishes a single web site or shares content in multiple language across many devices. By using Drupal as solution business leaders transform their content management into powerful digital solutions.

CONTACT USCONTACT US

grow your business today

Contact Name (required)

Organization Name (required)

What Are Your Interests/Needs

Web site(required)

E-mail (required)

Your Message

Our ServicesOur Services

WHAT WE CAN DO

Social Media Strategy

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

Content Strategy

Many organizations feel the need to  implement an editorial calendar to fill a content quota, but we recognize that without a strong content strategy this can be an incredibly wasteful investment.

 Content Writing

The content on your site tells your visitors who you are, encourages them to dig into your site .This content will be largely responsible for helping to attract visitors to your site.

Web Design & Development

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

Search Engine Optimization

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

WordPress Experts

We can create a beautiful, easy-to-use, custom site, or we can help you transfer your existing site to the best CMS on the Internet.

Our website design services are used by brands who are in need of a facelift. We design beautiful websites at affordable rates. Not only do the websites we develop look absolutely amazing, but we design them with your marketing goals in mind. High performing websites are focused on user experience, responsiveness across all devices, and clear call-to-actions to funnel traffic to your contact form or product page.

social ads guru digital marketin responsive design
Social Ads Guru Responsive Design

Our team firmly believes it is important to share what you know and to help others. We consult, hold workshops, speak at events, and offer IT support so we can to help spread some goodness in the world.

Our social media management services are designed to grow your brand’s online presence. We help your brand establish trust and build relationships with potential buyers. The benefits of using our social media management services consist of increased awareness, website traffic and lead generation. Additional benefits include influenced Google rankings, blog promotions, reputation management, and customer service to current and potential customers.

Web presence

We analyze yous business web page element as well as ranking on google.

Code Quality

We analyze your business web page code quality according to W3C standards.

Social Media Presence

We analyze social media presence and competitor using social data.

Social Ads Guru Analytics

SEO

We use web page analyzer for seo.

Brand Identity

We do brand identity analysis.

Google Trends

We use google trend facility based on Google search to show how often a particular search-term is entered .

Blog Blog

GURU DIARY
Why you should upgrade your Drupal to 8.8.0? – Open Source CMS New Releases

Drupal 8.8.0 — the last normal feature release of Drupal 8 — is now available for download. Some of the updates in this release include:

Stable Media Library:

The media library allows reuse of images, documents, videos and other digital assets across the website. The media library was previously a beta experimental module.

Media Library, experimental since Drupal 8.6.0, is a stable core module in Drupal 8.8.0. It does three main things:

  • Enhances the administrative media list page with a visual grid display of media thumbnails.
  • Allows users to select media for use in a field, or in a text editor, via a gorgeous, intuitive modal UI.
  • Enables authors to embed media items into text content, via the aforementioned gorgeous UI.

Experimental Administration Theme:

MOPRO CONTENT MANAGEMENT SYSTEM OVERVIEW

MoPro is a company Based in the USA, California and they offer services that include design, development and hosting your website. Not long time ago I had the chance to support on of sites hosted by MoPro on their servers and managed by their CMS.

Drupal 8 is out and it represents powerful new suite of tools
drupal-8-released
Drupal 8 represent powerful new suite of tools and the strongest link in content supply chain.

Drupal is an “out of the box” web content management tool and it represent high customizing platform – which help you build the right tool to serve your content management strategy.

Popular Travel #hashtags on Instagram

We are all curious about where other people are traveling and what are they researching and looking for on Social Media networks.

POPULAR-TRAVEL-HASHTAGS-min

Instagram rolls out its Live video feature in the U.S.

Instagram live video

Instagram’s latest features focus more on live streaming and less on photo sharing. On Monday, Instagram started rolling out its “Live” video-streaming feature to iOS and Android users in the U.S. The company first unveiled this feature in November, as a way to “connect with your friends and followers right now.” You will also be able to find popular Live videos in the Explore page. According to Instagram, Live will be available to everyone in the next few days.

Man Devotes His Life To Adopting Old Dogs Who Can’t Find Forever Homes

man-adopts-senior-dogs-shelter-steve-greig-51

Months kept passing after Steve Greig’s beloved dog died, but he still felt crushed. That’s when he decided he should give another dog a good life. But not just any dog. He went to his local shelter in Denver, Colorado to adopt the “least adoptable” senior dog, as these are the ones too often overlooked.

How to use Halloween marketing ideas for small business?

Halloween offers a unique opportunity for businesses to launch some fun and interesting marketing campaigns. This trend has expanded from USA to the whole world and each year we have the opportunity to catch some interesting ideas for promotion businesses.

Most interesting Tweets about Trump and power of hashtags

The campaign for United States presidential election of 2016 is in full swing and the elections are scheduled for Tuesday, November 8, 2016. These will be the 58th quadrennial U.S. presidential election.

Quick way to determine SoC’s GPU performance

 

Despite a common approach to employ usage of comprehensive benchmarks to determine performance of different hardware components of processing units, this if often not a great idea, mainly due to general limitations mentioned in my earlier blog post.

An alternative way to quickly predict the potential and a likely performance of a given GPU under stress in terms of its limits is to observe its raw „GFLOPs score. Although it isn’t a definite case, it is quite much a great predictor and it is definitely a great way to scope the potential of any given GPU.

What is Drupal and why should we use it?

drupal-8-released

Features of Drupal.

Drupal is number one platform for web content management among global enterprises, governments, higher education institutions, and NGOs. Flexible and highly scalable, Drupal publishes a single web site or shares content in multiple language across many devices. By using Drupal as solution business leaders transform their content management into powerful digital solutions.